create
Creates a new MeshInstancesResource with the specified name.
Return
The MeshInstancesResource created.
Parameters
The name of the MeshInstancesResource.
Throws
If any error occurs during the creation process.
Creates a new MeshInstancesResource with the specified name and custom float data slots per instance.
Return
The MeshInstancesResource created.
Parameters
The name of the MeshInstancesResource.
The number of custom float values reserved per instance. Range: 0, 16.
Throws
If any error occurs during the creation process.
Creates a new MeshInstancesResource with the specified name and instances. When there are too many instances that need to be created at one time, using this function will achieve better performance.
Return
The MeshInstancesResource created.
Parameters
The name of the MeshInstancesResource.
The list of instances to add to the MeshInstancesResource.
Throws
If any error occurs during the creation process.
If there are duplicate instance IDs in the list.
Creates a new MeshInstancesResource with the specified name, instances and explicit custom float data slots.
This overload uses the builder path and sets customDataCount even if the input instances have fewer (or no) custom float values, which can be useful when you want to reserve slots for later updates.
Return
The MeshInstancesResource created.
Parameters
The name of the MeshInstancesResource.
The number of custom float values reserved per instance. Range: 0, 16.
The list of instances to add to the MeshInstancesResource.
Throws
If any error occurs during the creation process.
If there are duplicate instance IDs in the list, or data size exceeds count.