struct RTTIOperationEngineContext

Extended version of RTTIOperationContext for various operations performed on classes in the engine layer.

Public

Methods

staticGetRttiStatic

static RTTIType *GetRttiStatic()

GetRtti

RTTIType *GetRtti() const

Returns an interface you can use to access class' Run Time Type Information.

Fields

PreserveGameObjectIds

bool PreserveGameObjectIds

By default deserialization will persist existing IDs for game objects.

Setting this to false will generate brand new IDs on deserialization.

e.g. When loading a scene or a prefab resource, we wish to persist the original IDs in its internal game object collection. But when instantiating a copy of a prefab in the scene, we want to to have new unique IDs.

IsGameObjectDeserializationActive

bool IsGameObjectDeserializationActive

InitializeNewGameObjects

bool InitializeNewGameObjects

Determines should any newly deserialized game object should be initialized.

GameObjectCollection

If deserializing game objects, collection to place them in.

CurrentSceneObjectEntity

ecs::Entity CurrentSceneObjectEntity

GameObjectIdRemapping

UnorderedMap<UUID, UUID> GameObjectIdRemapping

If provided, game object IDs will be remapped to provided values.

Flags

u32 Flags