Represents a separate player in the game complete with a set of actions exclusive
to the player and a set of paired device.
It is the simple version of UnityEngine.InputSystem.PlayerInput that removing dependency of InputControlScheme.
Inheritance
InputReceiver
Inherited Members
UnityEngine.Component.GetComponentInParent<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
UnityEngine.Object.FindFirstObjectByType<T>()
UnityEngine.Object.FindAnyObjectByType<T>()
UnityEngine.Object.FindFirstObjectByType<T>(UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindAnyObjectByType<T>(UnityEngine.FindObjectsInactive)
[AddComponentMenu("Render Streaming/Input Receiver")]
public class InputReceiver : InputChannelReceiverBase, IDataChannel
Properties
Declaration
public ReadOnlyArray<PlayerInput.ActionEvent> actionEvents { get; set; }
Property Value
Declaration
public InputActionAsset actions { get; set; }
Property Value
Declaration
public InputActionMap currentActionMap { get; set; }
Property Value
Declaration
public string defaultActionMap { get; set; }
Property Value
Declaration
public ReadOnlyArray<InputDevice> devices { get; }
Property Value
Declaration
public bool inputIsActive { get; }
Property Value
Declaration
public InputUser user { get; }
Property Value
Methods
Declaration
public void ActivateInput()
Declaration
public void CalculateInputRegion(Vector2Int size, Rect region)
Parameters
Type |
Name |
Description |
Vector2Int |
size |
Texture Size.
|
Rect |
region |
Region of the texture in world coordinate system.
|
Declaration
public void DeactivateInput()
Declaration
protected virtual void Dispose()
Declaration
protected virtual void OnDestroy()
Declaration
protected virtual void OnDeviceChange(InputDevice device, InputDeviceChange change)
Parameters
Declaration
protected virtual void OnDisable()
Declaration
protected virtual void OnEnable()
Declaration
public void PerformPairingWithAllLocalDevices()
Declaration
public void PerformPairingWithDevice(InputDevice device)
Parameters
Declaration
public override void SetChannel(string connectionId, RTCDataChannel channel)
Parameters
Overrides
Declaration
public void SetEnableInputPositionCorrection(bool enabled)
Parameters
Type |
Name |
Description |
Boolean |
enabled |
|
Declaration
public void SwitchCurrentActionMap(string mapNameOrId)
Parameters
Type |
Name |
Description |
String |
mapNameOrId |
|
Declaration
public void UnpairDevices(InputDevice device)
Parameters
Events
Declaration
public override event Action<InputDevice, InputDeviceChange> onDeviceChange
Event Type
Overrides