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
I have a character named Stacey and I want her to appear at the office door in my scene.
Add Position to the script with an anchor (from your own catalog):
Drag and drop the Spawn Asset Resource into the frame.
Choose an Asset from your catalog.
Choose Relative Position.
Link the anchor from the frame above:
Save and test in the headset: