Читати англійською Редагувати

Поділитися через


InteractableOnFocus Class

Definition

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

C++
public ref class InteractableOnFocus : Microsoft::MixedReality::Toolkit::Input::BaseFocusHandler
Inheritance
UnityEngine.MonoBehaviour
InteractableOnFocus
Attributes
UnityEngine.AddComponentMenuAttribute

Remarks

Useful with focusable GameObjects

Constructors

Fields

Profiles

List of profiles can match themes with gameObjects

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)
State

Methods

Awake()
OnBeforeFocusChange(FocusEventData)

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

(Inherited from BaseFocusHandler)
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.

(Inherited from BaseFocusHandler)
OnFocusExit(FocusEventData)

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

(Inherited from BaseFocusHandler)
Update()

Applies to

Продукт Версії
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0