For an overview of Resources, click here.
Overview
The Spawn Asset resource allows the author to spawn any type of asset instance into a scene. The asset is spawned at the specified position.
The types of assets that can be spawned include:
Unity Assets
Binary Assets
Required Fields
Field Name | Description |
---|---|
Asset Instance | Specifies the asset to be spawned. |
Position | Specifies the position at which the asset should spawn. This position can be one of two types: Fixed Position or Relative Position. The Fixed Position setting allows the author to configure the coordinates of the Positional Anchor, as well as its rotation. The Relative Position setting allows the author to configure the angle, distance, and elevation of the Positional Anchor, as well as its rotation. |
Events
Example in the Headset
Drag and drop a Spawn Asset Resource into the Resources pane of the script
Click on the '+' button beside the Asset Instance field.
Choose the Asset to spawn
Save
Training Tip:
If you are spawning a large number of assets at once, it can lead to some stuttering in the headset. To mitigate the motion sickness that can result, you can fade the scene out while the assets spawn. We also suggest using a Screen Message Resource to let the leaner know what is about to happen.
Here is what this would look like in the headset, complete with the fade scene and screen message tips:
To view this video in full screen, please click here.