Skip to content

クラス UnityKeyCodeExtensions

Namespace: GameCanvas

csharp
public static class UnityKeyCodeExtensions

Keychar (UTF-16) の相互変換

メソッド

ToKey(KeyCode)

csharp
public static Key ToKey(this KeyCode code)

TryGetChar(Key, char)

csharp
public static bool TryGetChar(this Key key, out char c)

TryGetChar(KeyCode, char)

csharp
public static bool TryGetChar(this KeyCode key, out char c)

TryGetKey(char, Key)

csharp
public static bool TryGetKey(this in char c, out Key key)

TryGetKeyCode(char, KeyCode)

csharp
public static bool TryGetKeyCode(this in char c, out KeyCode key)

Released under the MIT License.