original | An existing object that you want to make a copy of. |
count | The number of new copies to create. |
parent | The parent that will be assigned to the new object or objects. |
position | The position for the new object or objects. |
rotation | The rotation for the new object or objects. |
positions | The read only span of positions for the new object or objects. The length of the array can be less than count , in which case Unity uses position[i % count]. |
rotations | The read only span of rotations for the new object or objects. The length of the array can be less than count , in which case Unity uses rotation[i % count]. |
AsyncInstantiateOperation<T> An asynchronous operation that contains the resulting objects.
Captures a snapshot of the original object (that must be related to some GameObject) and returns the AsyncInstantiateOperation.
The operation is mainly asynchronous, but the last stage involving integration and awake calls is executed on the main thread. The operation can be cancelled, or the integration stage can be delayed using allowSceneActivation. It is possible to yield a return operation or call its WaitForCompletion() method to finish the operation in a synchronized way.