Interface InputProvider
Implement this interface and assign it to the Flexalon.InputProvider to override how FlexalonInteractables receive input.
Syntax
public interface InputProvider
Properties
Active
True if the input is active, e.g. button is being held down.
Declaration
bool Active { get; }
Property Value
| Type | Description |
|---|---|
| bool |
ExternalFocusedObject
In External Mode, the object that is currently being hovered or selected.
Declaration
GameObject ExternalFocusedObject { get; }
Property Value
| Type | Description |
|---|---|
| UnityEngine.GameObject |
InputMode
Declaration
InputMode InputMode { get; }
Property Value
| Type | Description |
|---|---|
| InputMode |
Ray
In Raycast Mode, the ray to cast to determine what should be moved / hit.
Declaration
Ray Ray { get; }
Property Value
| Type | Description |
|---|---|
| UnityEngine.Ray |
UIPointer
In Raycast Mode, the screen-space position used to pick UI objects.
Declaration
Vector3 UIPointer { get; }
Property Value
| Type | Description |
|---|---|
| UnityEngine.Vector3 |