13 [AddComponentMenu(
"")]
18 private Material _mat;
22 intObj = GetComponent<InteractionBehaviour>();
25 _mat =
intObj.GetComponentInChildren<Renderer>().material;
29 if (_mat !=
null &&
intObj !=
null) {
45 var intButton =
intObj as InteractionButton;
46 if (intButton !=
null) {
47 if (intButton.isPressed) {
InteractionBehaviours are components that enable GameObjects to interact with interaction controllers...
bool isPrimaryHovered
Gets whether this object is the primary hover for any interaction controller.
bool isSuspended
Gets whether the object is currently suspended. An object is "suspended" if it is currently grasped b...
bool isGrasped
Gets whether this object is grasped by any interaction controller.
bool isHovered
Gets whether any interaction controller is nearby.
InteractionBehaviour intObj