The '''AvatarUserMeshHider''' component makes non Skinned meshes invisible or only cast shadows according to the active user's perspective. It does this by making value User overrides for all MeshRenderers except for those in <code>Exclude</code>. It restores the fields back to normal after dequipping.
<!--T:2-->
== Intoduction ==
<!--T:3-->
<!--T:3-->
== Usage ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|Method|HideMethod|
|Method|'''[[#HideMethod|AvatarUserMeshHider.HideMethod]]'''|TypeAdv0=true| How to hide the meshes for the active user under the avatar.
|Exclude|MeshRenderer|
|Exclude|{{RootFieldType|SyncRefList`1|[[Component:MeshRenderer|MeshRenderer]]}}|TypeAdv1=true| Which meshes to not hide for the active user.
}}
== HideMethod ==
{{Table EnumValues
|ShadowOnly|0| Hide the meshes by value user overriding them to Shadow Only for the active user
|Deactivate|1| Hide the meshes by value user overriding their active field to false only for the active user.
[[Category:Components:Users:Common Avatar System{{#translation:}}|Avatar User Mesh Hider]]
Latest revision as of 06:00, 17 March 2025
Component image
AvatarUserMeshHider component as seen in the Scene Inspector
The AvatarUserMeshHider component makes non Skinned meshes invisible or only cast shadows according to the active user's perspective. It does this by making value User overrides for all MeshRenderers except for those in Exclude. It restores the fields back to normal after dequipping.