FScriptInterface

[FScriptInterface](API\Runtime\CoreUObject\UObject\FScriptInterface)

Windows
MacOS
Linux

Inheritance Hierarchy

FScriptInterface

TScriptInterface

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/ScriptInterface.h

Include

#include "UObject/ScriptInterface.h"

Syntax

class FScriptInterface

Remarks

FScriptInterface

This utility class stores the FProperty data for a native interface property. ObjectPointer and InterfacePointer point to different locations in the same UObject .

Constructors

Name Description

Public function

FScriptInterface

(
    UObject * InObjectPointer,
    void * InInterfacePointer
)

Default constructor

Functions

Name Description

Public function

void

 

AddReferencedObjects

(
    FReferenceCollector & Collector
)

Public function Const

void *

 

GetInterface()

Returns the pointer to the interface

Public function Const

UObject *...

 

GetObject()

Returns the ObjectPointer contained by this FScriptInterface

Public function

UObject *...

 

GetObjectRef()

Returns the ObjectPointer contained by this FScriptInterface

Public function

void

 

SetInterface

(
    void * InInterfacePointer
)

Sets the value of the InterfacePointer for this FScriptInterface

Public function

void

 

SetObject

(
    UObject * InObjectPointer
)

Sets the value of the ObjectPointer for this FScriptInterface

Operators

Name Description

Public function Const

bool

 

operator!=

(
    const FScriptInterface & Other
)

Public function

void

 

operator=

(
    const FScriptInterface & Other
)

Public function Const

bool

 

operator==

(
    const FScriptInterface & Other
)

Comparison operator, taking a reference to another FScriptInterface

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback