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 a native interface property. ObjectPointer and InterfacePointer point to different locations in the same UObject.
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 interface | |
| UObject * | GetObject () |
Returns the ObjectPointer contained by this FScriptInterface | |
| TObjectPtr< UObject > & | GetObjectRef () |
Returns the ObjectPointer contained by this FScriptInterface | |
| 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 |