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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss