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.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback