Modifier

Partager via


InteractableHighlight Class

Definition

Caution

This component is no longer supported

Adds or removes materials to target renderer for highlighting Focused GameObjects.

public ref class InteractableHighlight : Microsoft::MixedReality::Toolkit::Input::BaseFocusHandler
[System.Obsolete("This component is no longer supported", true)]
[UnityEngine.AddComponentMenu("Scripts/MRTK/Obsolete/InteractableHighlight")]
public class InteractableHighlight : Microsoft.MixedReality.Toolkit.Input.BaseFocusHandler
[<System.Obsolete("This component is no longer supported", true)>]
[<UnityEngine.AddComponentMenu("Scripts/MRTK/Obsolete/InteractableHighlight")>]
type InteractableHighlight = class
    inherit BaseFocusHandler
Public Class InteractableHighlight
Inherits BaseFocusHandler
Inheritance
UnityEngine.MonoBehaviour
InteractableHighlight
Attributes
ObsoleteAttribute UnityEngine.AddComponentMenuAttribute

Remarks

Useful with focusable GameObjects

Constructors

InteractableHighlight()

Properties

FocusEnabled

Is focus enabled for this Component?

(Inherited from BaseFocusHandler)
Focusers

The list of IMixedRealityPointers that are currently focused on this GameObject

(Inherited from BaseFocusHandler)
HasFocus

Does this object currently have focus by any IMixedRealityPointer?

(Inherited from BaseFocusHandler)
Highlight
Style
TargetRenderers

The target renderers that will get the styles applied.

Methods

OnBeforeFocusChange(FocusEventData)

Focus event that is raised before the focus is actually changed.

(Inherited from BaseFocusHandler)
OnDisable()
OnEnable()
OnFocusChanged(FocusEventData)

Focus event that is raised when the focused object is changed.

(Inherited from BaseFocusHandler)
OnFocusEnter(FocusEventData)

The Focus Enter event is raised on this GameObject whenever a IMixedRealityPointer's focus enters this GameObject's Collider.

OnFocusExit(FocusEventData)

The Focus Exit event is raised on this GameObject whenever a IMixedRealityPointer's focus leaves this GameObject's Collider.

Applies to