Component:SimpleAwayIndicator
This is used to make a customized or fancier way of stating that you are focused away into another world.
More actions
(Redirected from SimpleAwayIndicator (Component))
Component image 
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.
Usually found on the body slot of an avatar (but can be put anywhere in the world), this just needs a reference to the MeshRenderer or SkinnedMeshRenderer components to work.
| Name | Type | Description |
|---|---|---|
persistent
|
Bool | Determines whether or not this item will be saved to the server. |
UpdateOrder
|
Int | Controls the order in which this component is updated. |
Enabled
|
Bool | Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't. |
User
|
User | User whose away state will be watched. On avatars, may be set by an AvatarUserReferenceAssigner component. |
AwayMaterial
|
Material | Material to display when the user is away. |
Renderer
|
MeshRenderer | Mesh renderer component whose materials should be replaced |
_oldMaterials
|
list of Material | Backup of the renderer's original material list. Written automatically when "Away" state is triggered. |
Sync Delegates
| Method Name | Method type and Arguments. | Is the method hidden? | Description |
|---|---|---|---|
SetAway:Action
|
Action | X | Stores the renderer's material list in _oldMaterials and replaces them with the AwayMaterial.
|
Restore:Action
|
Action | X | Restores the renderer's materials from _oldMaterials.
|
OnTestAway:ButtonEventHandler
|
ButtonEventHandler | ✓ | Stores the renderer's material list in _oldMaterials and replaces them with the AwayMaterial.
|
OnTestRestore:ButtonEventHandler
|
ButtonEventHandler | ✓ | Restores the renderer's materials from _oldMaterials.
|
Usage
This is used to make a customized or fancier way of stating that you are focused away into another world.
Examples
Used on avatar meshes so they show an away Material when the user is away.