Class BaseFocusHandler
Base Component for handling Focus on GameObjects.
Implements
IEventSystemHandler
MonoBehaviour
Namespace: Microsoft.MixedReality.Toolkit.Input
Assembly: cs.temp.dll.dll
Syntax
public abstract class BaseFocusHandler : MonoBehaviour, IMixedRealityFocusHandler, IMixedRealityFocusChangedHandler, IEventSystemHandler, MonoBehaviour
Properties
FocusEnabled
Is focus enabled for this Component?
Declaration
public virtual bool FocusEnabled { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
FocusEnabled
Is focus enabled for this Component?
Declaration
public virtual bool FocusEnabled { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Focusers
The list of IMixedRealityPointers that are currently focused on this GameObject
Declaration
public List<IMixedRealityPointer> Focusers { get; }
Property Value
Type | Description |
---|---|
List<IMixedRealityPointer> |
Focusers
The list of IMixedRealityPointers that are currently focused on this GameObject
Declaration
public List<IMixedRealityPointer> Focusers { get; }
Property Value
Type | Description |
---|---|
List<IMixedRealityPointer> |
HasFocus
Does this object currently have focus by any IMixedRealityPointer?
Declaration
public virtual bool HasFocus { get; }
Property Value
Type | Description |
---|---|
Boolean |
HasFocus
Does this object currently have focus by any IMixedRealityPointer?
Declaration
public virtual bool HasFocus { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
OnBeforeFocusChange(FocusEventData)
Declaration
public virtual void OnBeforeFocusChange(FocusEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
FocusEventData | eventData |
OnBeforeFocusChange(FocusEventData)
Declaration
public virtual void OnBeforeFocusChange(FocusEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
FocusEventData | eventData |
OnFocusChanged(FocusEventData)
Declaration
public virtual void OnFocusChanged(FocusEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
FocusEventData | eventData |
OnFocusChanged(FocusEventData)
Declaration
public virtual void OnFocusChanged(FocusEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
FocusEventData | eventData |
OnFocusEnter(FocusEventData)
Declaration
public virtual void OnFocusEnter(FocusEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
FocusEventData | eventData |
OnFocusEnter(FocusEventData)
Declaration
public virtual void OnFocusEnter(FocusEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
FocusEventData | eventData |
OnFocusExit(FocusEventData)
Declaration
public virtual void OnFocusExit(FocusEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
FocusEventData | eventData |
OnFocusExit(FocusEventData)
Declaration
public virtual void OnFocusExit(FocusEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
FocusEventData | eventData |
Implements
IEventSystemHandler
MonoBehaviour