public static void Deregister(NVRInteractable interactable) { NVRPlayer.DeregisterInteractable(interactable); ColliderMapping = ColliderMapping.Where(mapping => mapping.Value != interactable).ToDictionary(mapping => mapping.Key, mapping => mapping.Value); NVRInteractableMapping.Remove(interactable); }
public static void Deregister(NVRInteractable interactable) { if (Initialized == false) { Debug.LogError("[NewtonVR] Error: NVRInteractables.Register called before initialization."); } NVRPlayer.DeregisterInteractable(interactable); ColliderMapping = ColliderMapping.Where(mapping => mapping.Value != interactable).ToDictionary(mapping => mapping.Key, mapping => mapping.Value); NVRInteractableMapping.Remove(interactable); }