The '''AvatarControllerSpawner''' component will spawn the corrosponding controller for the user when placed on an avatar under either the right or left hand.
== Usage ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|SpawnRoot|Slot|
|SpawnRoot|Slot| Where to spawn the model. (The Component attaches a slot called "root" under this when spawning the model, that becomes the model root)
|MaterialOverride|{{RootFieldType|AssetRef`1|[[Type:Material|Material]]}}|TypeAdv1=true| What material to replace the spawned model's materials with upon spawning.
|ControllerSpawned|{{RootFieldType|SyncDelegate`1|[[Type:Action`2|Action`2]]<[[Type:Slot|Slot]], [[Type:User|User]]>}}|TypeAdv2=true| The component calls this method when it has finished spawning the model with the user that has this controller model, and the root slot of the spawned model.
|_sourceControllerInfo|'''[[Component:AvatarControllerInfo|AvatarControllerInfo]]'''|TypeAdv3=true| The controller info this component grabbed in order to find and generate the right model.
Avatar Controller Spawner component as seen in the Scene Inspector
The AvatarControllerSpawner component will spawn the corrosponding controller for the user when placed on an avatar under either the right or left hand.
The component calls this method when it has finished spawning the model with the user that has this controller model, and the root slot of the spawned model.