Navigation
API > API/Plugins > API/Plugins/DisplayCluster > API/Plugins/DisplayCluster/TSharedCustomState
Description
Returns type identificator
Custom states are implemented using C++ templates, which allows them to carry arbitrary payload types. Since RTTI is not used, it is not possible to determine at runtime whether two states with the same name also share the same payload type. If such a type mismatch occurs, serialization will fail and the application will likely crash. To prevent this, each state is associated with a unique type ID.
Virtual Inheritance
- IDisplayClusterCustomState::GetType → TSharedCustomState::GetType
| Name | GetType |
| Type | function |
| Header File | /Engine/Plugins/Runtime/nDisplay/Source/DisplayCluster/Public/Cluster/CustomStates/DisplayClusterCustomStateShared.h |
| Include Path | #include "Cluster/CustomStates/DisplayClusterCustomStateShared.h" |
virtual FName GetType() const
Type ID