Choose your operating system:
Windows
macOS
Linux
| TSubclassOf
|
Module |
|
Header |
/Engine/Source/Runtime/CoreUObject/Public/Templates/SubclassOf.h |
Include |
#include "Templates/SubclassOf.h" |
template<class TClass>
class TSubclassOf
Template to allow TClassType's to be passed around with type safety
Name | Description | |
---|---|---|
|
TSubclassOf() |
Default Constructor, defaults to null |
|
TSubclassOf ( |
Constructor that takes a UClass and does a runtime check to make sure this is a compatible class |
|
TSubclassOf ( |
Constructor that takes a UClass and does a runtime check to make sure this is a compatible class |
|
TSubclassOf ( |
Copy Constructor, will only compile if types are compatible |
Name | Description | ||
---|---|---|---|
|
UClass * |
DebugAccessRawClassPtr() |
This is a DEVELOPMENT ONLY debugging function and should not be relied upon. |
|
TClassType &... |
Get() |
Dereference back into a UClass |
|
TClass * |
GetDefaultObject() |
Get the CDO if we are referencing a valid class |
Name | Description | ||
---|---|---|---|
|
operator TClassType *() |
Implicit conversion to UClass |
|
|
TClassType &... |
operator*() |
Dereference back into a UClass, does runtime type checking |
|
TSubclassOf ... |
operator= ( |
Assignment operator, will only compile if types are compatible |
|
TSubclassOf ... |
operator= ( |
Assignment operator from UClass, the type is checked on get not on set |
|
TSubclassOf ... |
operator= ( |
Assignment operator from UClass, the type is checked on get not on set |
|
TClassType &... |
operator->() |
Dereference back into a UClass |
Name |
Description |
---|---|
TBaseType |
|
TClassType |