TScriptInterface

Templated version of [FScriptInterface](API\Runtime\CoreUObject\UObject\FScriptInterface), which provides accessors and operators for referencing the interface portion of a [UObject](API\Runtime\CoreUObject\UObject\UObject) that implements a native interface.

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

template<class InterfaceType>
class TScriptInterface : public FScriptInterface

Remarks

Templated version of FScriptInterface, which provides accessors and operators for referencing the interface portion of a UObject that implements a native interface.

Constructors

Name Description

Public function

TScriptInterface()

Default constructor

Public function

TScriptInterface

(
    TYPE_OF_NULLPTR
)

Construction from nullptr

Public function

TScriptInterface

(
    UObjectType* SourceObject
)

Standard constructor.

Public function

TScriptInterface

(
    const TScriptInterface& Other
)

Copy constructor

Operators

Name Description

Public function Const

 

operator bool()

Boolean operator.

Public function Const

bool

 

operator!=

(
    const InterfaceType* Other
)

Public function Const

bool

 

operator!=

(
    const TScriptInterface& Other
)

Public function Const

InterfaceTyp...

 

operator*()

Dereference operator.

Public function

InterfaceTyp...

 

operator=

(
    UObjectType* SourceObject
)

Assignment operator.

Public function

void

 

operator=

(
    TYPE_OF_NULLPTR
)

Assignment from nullptr

Public function Const

bool

 

operator==

(
    const InterfaceType* Other
)

Comparison operator, taking a pointer to InterfaceType

Public function Const

bool

 

operator==

(
    const TScriptInterface& Other
)

Comparison operator, taking a reference to another TScriptInterface

Public function Const

InterfaceTyp...

 

operator->()

Member access operator.

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