The '''SimpleAwayIndicator''' indicates when a user doesn't have the session focused by temporarily replacing the [[Material|materials]] of a [[Component:MeshRenderer|MeshRenderer]] with the specified ''Away Material''.
Usually found on the body [[Slot|slot]] of an [[Avatar|avatar]] (but can be put anywhere in the [[World|world]]), this just needs a [[Reference Type|reference]] to the [[Component:MeshRenderer|MeshRenderer]] or [[Component:SkinnedMeshRenderer|SkinnedMeshRenderer]] components to work.
<!--T:3-->
<!--T:3-->
== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|User|User|
|User|User|User whose away state will be watched. ''On avatars, may be set by an [[Component:AvatarUserReferenceAssigner|AvatarUserReferenceAssigner]] component.''
|_oldMaterials|{{RootFieldType|SyncAssetList`1|[[Type:Material|Material]]}}|TypeAdv3=true|Backup of the renderer's original material list. ''Written automatically when "Away" state is triggered.''
}}
== Sync Delegates ==
{{Table ComponentTriggers
|SetAway:[[Type:Action|Action]]|[[Type:Action|Action]]|false|Stores the renderer's material list in <code>_oldMaterials</code> and replaces them with the <code>AwayMaterial</code>.
|Restore:[[Type:Action|Action]]|[[Type:Action|Action]]|false|Restores the renderer's materials from <code>_oldMaterials</code>.
|OnTestAway:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Stores the renderer's material list in <code>_oldMaterials</code> and replaces them with the <code>AwayMaterial</code>.
|OnTestRestore:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Restores the renderer's materials from <code>_oldMaterials</code>.
}}
}}
<!--T:4-->
<!--T:4-->
== Behavior ==
== Usage ==
This is used to make a customized or fancier way of stating that you are focused away into another [[World|world]].
<!--T:5-->
<!--T:5-->
== Examples ==
== Examples ==
Used on avatar meshes so they show an away Material when the user is away.
SimpleAwayIndicator component as seen in the Scene Inspector
The SimpleAwayIndicator indicates when a user doesn't have the session focused by temporarily replacing the materials of a MeshRenderer with the specified Away Material.