Host card now switches auto-hold based on whether user is in VR or on desktop.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user