Immerseum.VRSimulator Namespace > EventManager Class : OnApplyCollider Event |
Fired during the instantiation of a simulated controller. During this event, colliders are applied to a specific simulated controller based on the configuration settings in the ControllerManager.
public event EventManager.ApplyColliderAction OnApplyCollider
public class myClass : MonoBehaviour { void OnEnable() { EventManager.OnApplyCollider += myCustomListener; } void OnDisable() { EventManager.OnApplyCollider -= myCustomListener; } void myCustomListener(int controller, bool removeCollider) { // Custom listener logic goes here. } }