Note: Adding a Scripted Avatar NPC has the same performance impacts as adding another player.
Property | Description |
---|---|
Name | Name of the entity in the world. This value is displayed in the Hierarchy panel. |
NPC Properties | |
Character name | The display name of the Scripted Avatar NPC in your world. This value is what players see. |
Spawn on Start | When enabled, this Scripted Avatar NPC is spawned when the world is started. |
Appearance | To change your NPC’s appearance, click Edit Avatar. To update your NPC’s appearance in the Desktop Editor from the currently saved version on the Avatar web editor, click Refresh. Note: Updates do not appear in the Desktop Editor until you click Refresh. See Edit Scripted Avatar NPC Appearance. |
Attributes | |
Position | Coordinates for the position of the Scripted Avatar NPC in your world. |
Rotation | Coordinates for the Scripted Avatar NPC’s rotation. Default is (0,0,0) . |
Scale | Scale values for the NPC. Default is (1,1,1) . Note: Changing the scale values on the NPC entity may require changes to some of the properties on the Navigation Profile. For more information, see Build Navigation for Scripted Avatar NPCs. |
Script | |
Attached Script | Select the script to attach to the Scripted Avatar NPC. |
Note: Adding a Scripted Avatar NPC has the same performance impacts as adding another player.
Note: When a Scripted Avatar NPC is duplicated, the copy is a deep copy, meaning that the duplicate NPC has no connection to the original.
Note: If a script is attached to the source NPC, it is also referenced in the duplicate instance of the source.
Note: In a non-File Backed Scripts world, creating an instance of an asset template creates a deep copy of any attached script. If you create 10 Scripted Avatar NPCs from an asset template in a non-FBS world, you must manage 10 independent scripts.
Tip: When you modify the appearance of an NPC that is based on an asset template, you can choose to apply those changes back to the template. Select Apply Overrides in the Properties panel to apply changes back to the template. Other instances that consume the asset template update receive your updates, even if they are in a different world.
Note: After you publish your world, subsequent changes to your Scripted Avatar NPCs do not affect the published world. To apply changes to the published world, you must publish again.