ezEngine  Release 25.03
ezPrefabInstantiationOptions Struct Reference

Public Types

enum  RandomSeedMode { RandomSeedMode::DeterministicFromParent, RandomSeedMode::CompletelyRandom, RandomSeedMode::FixedFromSerialization, RandomSeedMode::CustomRootValue }
 

Public Attributes

ezGameObjectHandle m_hParent
 
ezDynamicArray< ezGameObject * > * m_pCreatedRootObjectsOut = nullptr
 
ezDynamicArray< ezGameObject * > * m_pCreatedChildObjectsOut = nullptr
 
const ezUInt16 * m_pOverrideTeamID = nullptr
 
bool m_bForceDynamic = false
 
ezTempHashedString m_ReplaceNamedRootWithParent
 If the prefab has a single root node with this non-empty name, rather than creating a new object, instead the m_hParent object is used.
 
RandomSeedMode m_RandomSeedMode = RandomSeedMode::DeterministicFromParent
 
ezUInt32 m_uiCustomRandomSeedRootValue = 0
 
ezTime m_MaxStepTime = ezTime::MakeZero()
 
ezProgressm_pProgress = nullptr
 

Member Enumeration Documentation

◆ RandomSeedMode

Enumerator
DeterministicFromParent 

ezWorld::CreateObject() will either derive a deterministic value from the parent object, or assign a random value, if no parent exists

CompletelyRandom 

ezWorld::CreateObject() will assign a random value to this object

FixedFromSerialization 

Keep deserialized random seed value.

CustomRootValue 

Use the given seed root value to assign a deterministic (but different) value to each game object.


The documentation for this struct was generated from the following file: