StatefulInteractableColliderToggle Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
[UnityEngine.AddComponentMenu("MRTK/UX/Stateful Interactable Collider Toggle")]
public class StatefulInteractableColliderToggle : UnityEngine.MonoBehaviour
[<UnityEngine.AddComponentMenu("MRTK/UX/Stateful Interactable Collider Toggle")>]
type StatefulInteractableColliderToggle = class
inherit MonoBehaviour
Public Class StatefulInteractableColliderToggle
Inherits MonoBehaviour
- Inheritance
-
UnityEngine.MonoBehaviourStatefulInteractableColliderToggle
- Attributes
-
UnityEngine.AddComponentMenuAttribute
Constructors
| Name | Description |
|---|---|
| StatefulInteractableColliderToggle() | |
Properties
| Name | Description |
|---|---|
| ColliderFitter |
The RectTransformColliderFitter that automatically disables the interactable's colliders based visibility. |
| StatefulInteractable |
The StatefulInteractable to enable or disable the collider based on the interactable's enabled state. |
Methods
| Name | Description |
|---|---|
| OnDisable() |
A Unity event function that is called when the script component has been disabled. |
| OnEnable() |
A Unity event function that is called when the script component has been enabled. |