コガネブログ

平日更新を目標に Unity や C#、Visual Studio、ReSharper などのゲーム開発アレコレを書いていきます

2014-04-28から1日間の記事一覧

【Unity】EditorGUILayout.ObjectFieldの型指定の重複を無くすラッパー関数

概要 mTexture = EditorGUILayout.ObjectField(label, mTexture, typeof(Texture), false) as Texture; mMaterial = EditorGUILayout.ObjectField(label, mMaterial, typeof(Material), false) as Material; Unityのエディタ拡張でEditorGUILayout.ObjectFie…