waitForStream
Waits for an object to finish streaming.
Syntax
object.waitForStream();
Returns
Promise<void>
- A promise that resolves when the object is streamed in.
Example
const object = engine.objects.create('box');
await object.waitForStream();
// The object is now streamed in
object.position.set(0, 2, 0);
Available on: Client