Instance Handle
A lightweight struct used to uniquely identify and reference individual instances.
A FloraInstanceHandle identifies one instance managed by FloraSystem.
Validity
A handle is valid while its Index and Version match an active instance. Destroying the instance invalidates all copies of its handle.
Usage
Create
FloraInstanceHandle handle = FloraSystem.GetOrCreate().CreateInstance(
prefab,
parentObject,
position,
rotation,
scale
);Destroy
FloraSystem.Instance.DestroyInstance(handle);
FloraSystem.Instance.DestroyInstances(handlesArray);Check validity
Enable or disable
Read position or bounds
Terrain details do not have instance handles. They are transient GPU data and cannot be queried or modified individually through FloraSystem.
Last updated