docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class InputRemoting

    Makes the activity and data of an InputManager observable in message form.

    Inheritance
    object
    InputRemoting
    Implements
    IObservable<InputRemoting.Message>
    IObserver<InputRemoting.Message>
    Namespace: UnityEngine.InputSystem
    Assembly: Unity.InputSystem.dll
    Syntax
    public sealed class InputRemoting : IObservable<InputRemoting.Message>, IObserver<InputRemoting.Message>
    Remarks

    Can act as both the sender and receiver of these message so the flow is fully bidirectional, i.e. the InputManager on either end can mirror its layouts, devices, and events over to the other end. This permits streaming input not just from the player to the editor but also feeding input from the editor back into the player.

    Remoting sits entirely on top of the input system as an optional piece of functionality. In development players and the editor, we enable it automatically but in non-development players it has to be explicitly requested by the user.

    To see devices and input from players in the editor, open the Input Debugger through "Windows >> Input Debugger".

    Properties

    sending

    Declaration
    public bool sending { get; }
    Property Value
    Type Description
    bool
    See Also
    remoting

    Methods

    RemoveRemoteDevices(int)

    Declaration
    public void RemoveRemoteDevices(int participantId)
    Parameters
    Type Name Description
    int participantId
    See Also
    remoting

    StartSending()

    Start sending messages for data and activity in the local input system to observers.

    Declaration
    public void StartSending()
    See Also
    sending
    StopSending()

    StopSending()

    Declaration
    public void StopSending()
    See Also
    remoting

    Subscribe(IObserver<Message>)

    Declaration
    public IDisposable Subscribe(IObserver<InputRemoting.Message> observer)
    Parameters
    Type Name Description
    IObserver<InputRemoting.Message> observer
    Returns
    Type Description
    IDisposable
    See Also
    remoting

    Implements

    IObservable<T>
    IObserver<T>

    Extension Methods

    Observable.CallOnce<TValue>(IObservable<TValue>, Action<TValue>)
    Observable.CallOnce<TValue>(IObservable<TValue>, Action<TValue>)
    Observable.Call<TValue>(IObservable<TValue>, Action<TValue>)
    Observable.Call<TValue>(IObservable<TValue>, Action<TValue>)
    Observable.SelectMany<TSource, TResult>(IObservable<TSource>, Func<TSource, IEnumerable<TResult>>)
    Observable.SelectMany<TSource, TResult>(IObservable<TSource>, Func<TSource, IEnumerable<TResult>>)
    Observable.Select<TSource, TResult>(IObservable<TSource>, Func<TSource, TResult>)
    Observable.Select<TSource, TResult>(IObservable<TSource>, Func<TSource, TResult>)
    Observable.Take<TValue>(IObservable<TValue>, int)
    Observable.Take<TValue>(IObservable<TValue>, int)
    Observable.Where<TValue>(IObservable<TValue>, Func<TValue, bool>)
    Observable.Where<TValue>(IObservable<TValue>, Func<TValue, bool>)

    See Also

    remoting
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)