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 InInterfaceType>
class TScriptInterface : public FScriptInterface
Remarks
Templated version of FScriptInterface, which provides accessors and operators for referencing the interface portion of an object implementing an interface. This type is only useful with native interfaces, UClass::ImplementsInterface should be used to check for blueprint interfaces.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
Default constructor | ||
![]() |
Construction from nullptr | ||
![]() |
TScriptInterface
(
U&& Source |
Construction from an object type that may natively implement InterfaceType | |
![]() |
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 may natively implement InterfaceType | |
![]() |
TScriptInterface
(
const TScriptInterface& |
Copyable |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
InInterfaceType * | GetInterface () |
Returns the pointer to the interface |
![]() ![]() |
UObjectType * | GetObject () |
Returns the ObjectPointer contained by this TScriptInterface |
![]() |
TObjectPtr< UObjectType > & | GetObjectRef () |
Returns the ObjectPointer contained by this TScriptInterface |
![]() |
void | SetInterface
(
InInterfaceType* InInterfacePointer |
Sets the value of the InterfacePointer for this TScriptInterface |
![]() |
void | SetObject
(
UObjectType* InObjectPointer |
Sets the value of the ObjectPointer for this TScriptInterface |
Operators
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Boolean operator, returns true if this object natively implements InterfaceType. | ||
![]() ![]() |
bool | operator!=
(
const OtherInterface* Other |
|
![]() ![]() |
bool | operator!=
(
const TScriptInterface& Other |
|
![]() ![]() |
bool | ||
![]() ![]() |
InInterfaceType & | operator* () |
Dereference operator. |
![]() |
TScriptInterface & | operator=
(
TObjectPtr< ObjectType > SourceObject |
Assignment from an object type that may natively implement InterfaceType |
![]() |
TScriptInterface & | operator=
(
const TScriptInterface< OtherInterfaceType >& Other |
Assignment from another script interface of a compatible interface type |
![]() |
TScriptInterface & | operator=
(
U&& Source |
Assignment from an object type that may natively implement InterfaceType |
![]() |
TScriptInterface & | Assignment from nullptr | |
![]() |
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 | Comparison operator, taking a nullptr | |
![]() ![]() |
InInterfaceType * | operator-> () |
Member access operator. |
Typedefs
Name | Description |
---|---|
InterfaceType | |
UObjectType |