2017-09-17から1日間の記事一覧
ソースコード public static class CharExt { public static int ToInt( this char self ) { return self - '0'; } } 使い方 char ch = '1' int num = ch.ToInt();
ソースコード using UnityEditor; public static class Example { public static EditorWindow GetGameView() { var assembly = typeof( EditorWindow ).Assembly; var type = assembly.GetType( "UnityEditor.GameView" ); var gameview = EditorWindow.Get…