Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/UObject
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
This utility class stores the FProperty data for an interface property used in both blueprint and native code. For objects natively implementing an interface, ObjectPointer and InterfacePointer point to different locations in the same UObject. For objects that only implement an interface in blueprint, only ObjectPointer will be set because there is no native representation. UClass::ImplementsInterface can be used along with Execute_ event wrappers to properly handle BP-implemented interfaces.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
Default constructor | ||
![]() |
FScriptInterface
(
const FScriptInterface& |
Copyable | |
![]() |
FScriptInterface
(
UObject* InObjectPointer, |
Construction from object and interface |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | AddReferencedObjects
(
FReferenceCollector& Collector |
|
![]() ![]() |
void * | GetInterface () |
Returns the pointer to the native interface if it is valid |
![]() ![]() |
UObject * | GetObject () |
Returns the ObjectPointer contained by this FScriptInterface |
![]() |
TObjectPtr< UObject > & | GetObjectRef () |
Returns the ObjectPointer contained by this FScriptInterface |
![]() |
FArchive & | Serialize ScriptInterface | |
![]() |
void | SetInterface
(
void* InInterfacePointer |
Sets the value of the InterfacePointer for this FScriptInterface |
![]() |
void | Sets the value of the ObjectPointer for this FScriptInterface |
Operators
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | operator!=
(
const FScriptInterface& Other |
|
![]() |
FScriptInterface & | operator=
(
const FScriptInterface& |
|
![]() ![]() |
bool | operator==
(
const FScriptInterface& Other |
Comparison operator, taking a reference to another FScriptInterface |