Class FocusEventData
Describes an Input Event associated with a specific pointer's focus state change.
Namespace: Microsoft.MixedReality.Toolkit.Input
Assembly: cs.temp.dll.dll
Syntax
public class FocusEventData : BaseEventData
Constructors
FocusEventData(EventSystem)
Declaration
public FocusEventData(EventSystem eventSystem)
Parameters
| Type | Name | Description |
|---|---|---|
| EventSystem | eventSystem |
Properties
NewFocusedObject
The new focused object.
Declaration
public GameObject NewFocusedObject { get; }
Property Value
| Type | Description |
|---|---|
| GameObject |
OldFocusedObject
The old focused object.
Declaration
public GameObject OldFocusedObject { get; }
Property Value
| Type | Description |
|---|---|
| GameObject |
Pointer
The pointer associated with this event.
Declaration
public IMixedRealityPointer Pointer { get; }
Property Value
| Type | Description |
|---|---|
| IMixedRealityPointer |
Methods
Initialize(IMixedRealityPointer)
Used to initialize/reset the event and populate the data.
Declaration
public void Initialize(IMixedRealityPointer pointer)
Parameters
| Type | Name | Description |
|---|---|---|
| IMixedRealityPointer | pointer |
Initialize(IMixedRealityPointer, GameObject, GameObject)
Used to initialize/reset the event and populate the data.
Declaration
public void Initialize(IMixedRealityPointer pointer, GameObject oldFocusedObject, GameObject newFocusedObject)
Parameters
| Type | Name | Description |
|---|---|---|
| IMixedRealityPointer | pointer | |
| GameObject | oldFocusedObject | |
| GameObject | newFocusedObject |