Class UnityKeyCodeExtensions
- Namespace
- GameCanvas
- Assembly
- GameCanvas.dll
UnityEngine.InputSystem.Key と char (UTF-16) の相互変換
public static class UnityKeyCodeExtensions
- Inheritance
-
UnityKeyCodeExtensions
- Inherited Members
Methods
ToKey(KeyCode)
public static Key ToKey(this KeyCode code)
Parameters
codeKeyCode
Returns
- Key
TryGetChar(Key, out char)
public static bool TryGetChar(this Key key, out char c)
Parameters
keyKeycchar
Returns
TryGetChar(KeyCode, out char)
public static bool TryGetChar(this KeyCode key, out char c)
Parameters
keyKeyCodecchar
Returns
TryGetKey(in char, out Key)
public static bool TryGetKey(this in char c, out Key key)
Parameters
ccharkeyKey
Returns
TryGetKeyCode(in char, out KeyCode)
public static bool TryGetKeyCode(this in char c, out KeyCode key)
Parameters
ccharkeyKeyCode