Skip to content

Commit

Permalink
feat(hands): allow hands rendering to be diabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mwfarb committed Feb 1, 2024
1 parent 3ed411b commit cf3f3da
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Runtime/ArenaClientScene.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ protected override void Awake()
[Header("Presence")]
[Tooltip("Display other camera avatars in the scene")]
public bool renderCameras = true;
[Tooltip("Display other avatars' hand controllers in the scene")]
public bool renderHands = true;
[Tooltip("Display VR Controller Rays")]
public bool drawControllerRays = false;

Expand Down Expand Up @@ -691,7 +693,10 @@ private void UpdateObjectMessage(ArenaObjectJson msg, object indata, ArenaObject
break;
case "handLeft":
case "handRight":
AttachHand(msg.object_id, url, gobj);
if (renderHands)
{
AttachHand(msg.object_id, url, gobj);
}
break;
}

Expand Down Expand Up @@ -845,7 +850,7 @@ private void UpdateObjectMessage(ArenaObjectJson msg, object indata, ArenaObject
internal void AttachAvatar(string object_id, ArenaArenaUserJson json, GameObject gobj)
{
json.headModelPath ??= arenaDefaults.headModelPath;
json.displayName ??=arenaDefaults.userName;
json.displayName ??= arenaDefaults.userName;

bool worldPositionStays = false;
if (json.headModelPath != null)
Expand Down

0 comments on commit cf3f3da

Please sign in to comment.