I am trying to let player drag dead enemy bodies with XR Grab Interactable. The problem I facing is that I don’t see any way to disable the component when the enemy is alive so the player won’t be able to drag him. I want this component to be enabled only when the enemy is dead. Is there any way to do this?
If you just set the interaction layer to nothing when you dont want it active that will work… Then change the interaction layer on XRGrabInteractible to what it should be when the mob is dead.
That’s a great idea, thanks! I will give it a try.