Struct InputUserAccountHandle | Input System | 1.0.2
docs.unity3d.com
    Show / Hide Table of Contents

    Struct InputUserAccountHandle

    Handle for a user account in an external API.

    Namespace: UnityEngine.InputSystem.Users
    Syntax
    public struct InputUserAccountHandle : IEquatable<InputUserAccountHandle>

    Constructors

    InputUserAccountHandle(String, UInt64)

    Declaration
    public InputUserAccountHandle(string apiName, ulong handle)
    Parameters
    Type Name Description
    String apiName
    UInt64 handle

    Properties

    apiName

    Symbolic name of the API that owns the handle.

    Declaration
    public string apiName { get; }
    Property Value
    Type Description
    String
    Remarks

    This essentially provides a namespace for handle.

    On PS4, for example, this will read "PS4" for user handles corresponding to sceUserId.

    This will not be null or empty except if the handle is invalid.

    handle

    Declaration
    public ulong handle { get; }
    Property Value
    Type Description
    UInt64

    Methods

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean
    Overrides
    ValueType.Equals(Object)

    Equals(InputUserAccountHandle)

    Declaration
    public bool Equals(InputUserAccountHandle other)
    Parameters
    Type Name Description
    InputUserAccountHandle other
    Returns
    Type Description
    Boolean
    Implements
    IEquatable<T>.Equals(T)

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    ValueType.GetHashCode()

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    ValueType.ToString()

    Operators

    Equality(InputUserAccountHandle, InputUserAccountHandle)

    Declaration
    public static bool operator ==(InputUserAccountHandle left, InputUserAccountHandle right)
    Parameters
    Type Name Description
    InputUserAccountHandle left
    InputUserAccountHandle right
    Returns
    Type Description
    Boolean

    Inequality(InputUserAccountHandle, InputUserAccountHandle)

    Declaration
    public static bool operator !=(InputUserAccountHandle left, InputUserAccountHandle right)
    Parameters
    Type Name Description
    InputUserAccountHandle left
    InputUserAccountHandle right
    Returns
    Type Description
    Boolean
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 22 January 2021