Instanced |
public void SetInstanceData( InstanceData[] instancesData, bool updateBounds = true )
SetInstanceData Updates the InstanceData and InstancesCount.
This method must be called after the instance data is changed.
If data size is changed the method also sets the StartInstanceIndex to 0.
When the instanceData is changed, usually the BoundingBox of this SceneNode should be also changed. Because it can take some time to calculate the new bounding box, it is possible to prevent updating BoundingBox with specifying updateBounds property to false.
You can also manually set the instance buffer to this InstancedMeshGeometry3DNode with using SetInstanceBuffer(Buffer, Int32, Int32, InstanceData, Boolean) method.