![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ScriptInterface.h>
Inheritance diagram for FScriptInterface:Public Member Functions | |
| FScriptInterface ()=default | |
| FScriptInterface (UObject *InObjectPointer, void *InInterfacePointer) | |
| FScriptInterface (const FScriptInterface &)=default | |
| FScriptInterface & | operator= (const FScriptInterface &)=default |
| UE_FORCEINLINE_HINT UObject * | GetObject () const |
| UE_FORCEINLINE_HINT TObjectPtr< UObject > & | GetObjectRef () |
| UE_FORCEINLINE_HINT void * | GetInterface () const |
| void | SetObject (UObject *InObjectPointer) |
| UE_FORCEINLINE_HINT void | SetInterface (void *InInterfacePointer) |
| UE_FORCEINLINE_HINT bool | operator== (const FScriptInterface &Other) const |
| UE_FORCEINLINE_HINT bool | operator!= (const FScriptInterface &Other) const |
| void | AddReferencedObjects (FReferenceCollector &Collector) |
Protected Member Functions | |
| COREUOBJECT_API FArchive & | Serialize (FArchive &Ar, class UClass *InterfaceType) |
Friends | |
| uint32 | GetTypeHash (const FScriptInterface &Instance) |
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.
|
default |
Default constructor
Construction from object and interface
|
default |
Copyable
|
inline |
|
inline |
Returns the pointer to the native interface if it is valid
|
inline |
Returns the ObjectPointer contained by this FScriptInterface
|
inline |
Returns the ObjectPointer contained by this FScriptInterface
|
inline |
|
default |
|
inline |
Comparison operator, taking a reference to another FScriptInterface
Serialize ScriptInterface
|
inline |
Sets the value of the InterfacePointer for this FScriptInterface
Sets the value of the ObjectPointer for this FScriptInterface
|
friend |