Navigation
Unreal Engine C++ API Reference > 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
template<typename 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
Type | Name | Description | |
---|---|---|---|
![]() |
Default constructor | ||
![]() |
TScriptInterface
(
TYPE_OF_NULLPTR |
Construction from nullptr | |
![]() |
TScriptInterface
(
U&& Source |
Construction from an object type that implements the InterfaceType native interface class | |
![]() |
TScriptInterface
(
const TScriptInterface< OtherInterfaceType >& Other |
Construction from another script interface of a compatible interface type | |
![]() |
TScriptInterface
(
TObjectPtr< ObjectType > SourceObject |
Assignment from an object type that implements the InterfaceType native interface class | |
![]() |
TScriptInterface
(
const TScriptInterface< OtherInterfaceType >& Other |
||
![]() |
TScriptInterface
(
const TScriptInterface& |
Copyable |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
InterfaceType * | GetInterface () |
Returns the pointer to the interface |
![]() |
void | SetInterface
(
InterfaceType* InInterfacePointer |
Sets the value of the InterfacePointer for this TScriptInterface |
Operators
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Boolean operator. | ||
![]() ![]() |
bool | operator!=
(
const OtherInterface* Other |
|
![]() ![]() |
bool | operator!=
(
const TScriptInterface& Other |
|
![]() ![]() |
bool | operator!=
(
TYPE_OF_NULLPTR |
|
![]() ![]() |
InterfaceType & | operator* () |
Dereference operator. |
![]() |
TScriptInterface & | operator=
(
TObjectPtr< ObjectType > SourceObject |
Assignment from an object type that implements the InterfaceType native interface class |
![]() |
TScriptInterface & | operator=
(
U&& Source |
Assignment from an object type that implements the InterfaceType native interface class |
![]() |
TScriptInterface & | operator=
(
TYPE_OF_NULLPTR |
Assignment from nullptr |
![]() |
TScriptInterface & | operator=
(
const TScriptInterface< OtherInterfaceType >& Other |
Assignment from another script interface of a compatible interface type |
![]() |
TScriptInterface & | operator=
(
const TScriptInterface& |
|
![]() ![]() |
bool | operator==
(
const OtherInterface* Other |
Comparison operator, taking a pointer to InterfaceType |
![]() ![]() |
bool | operator==
(
const TScriptInterface& Other |
Comparison operator, taking a reference to another TScriptInterface |
![]() ![]() |
bool | operator==
(
TYPE_OF_NULLPTR |
Comparison operator, taking a nullptr |
![]() ![]() |
InterfaceType * | operator-> () |
Member access operator. |