Host card now switches auto-hold based on whether user is in VR or on desktop.

This commit is contained in:
2026-02-21 21:49:17 -05:00
parent 0d75f15d3d
commit d3fde01005
2 changed files with 57 additions and 439 deletions
@@ -95,6 +95,14 @@ public class HostCardManager : UdonSharpBehaviour
public void EnablePickup(bool Enable)
{
_PickupComponent.pickupable = Enable;
if (Networking.LocalPlayer.IsUserInVR())
{
_PickupComponent.AutoHold = VRC_Pickup.AutoHoldMode.No;
}
else
{
_PickupComponent.AutoHold = VRC_Pickup.AutoHoldMode.Yes;
}
}