Struct InputUserAccountHandle
Handle for a user account in an external API.
Implements
Namespace: UnityEngine.InputSystem.Users
Assembly: Unity.InputSystem.dll
Syntax
public struct InputUserAccountHandle : IEquatable<InputUserAccountHandle>
Constructors
InputUserAccountHandle(string, ulong)
Declaration
public InputUserAccountHandle(string apiName, ulong handle)
Parameters
Type | Name | Description |
---|---|---|
string | apiName | |
ulong | 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 |
---|---|
ulong |
Methods
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj |
Returns
Type | Description |
---|---|
bool |
Overrides
Equals(InputUserAccountHandle)
Declaration
public bool Equals(InputUserAccountHandle other)
Parameters
Type | Name | Description |
---|---|---|
InputUserAccountHandle | other |
Returns
Type | Description |
---|---|
bool |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int |
Overrides
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |
Overrides
Operators
operator ==(InputUserAccountHandle, InputUserAccountHandle)
Declaration
public static bool operator ==(InputUserAccountHandle left, InputUserAccountHandle right)
Parameters
Type | Name | Description |
---|---|---|
InputUserAccountHandle | left | |
InputUserAccountHandle | right |
Returns
Type | Description |
---|---|
bool |
operator !=(InputUserAccountHandle, InputUserAccountHandle)
Declaration
public static bool operator !=(InputUserAccountHandle left, InputUserAccountHandle right)
Parameters
Type | Name | Description |
---|---|---|
InputUserAccountHandle | left | |
InputUserAccountHandle | right |
Returns
Type | Description |
---|---|
bool |