コード例 #1
0
ファイル: SignalsTreeViewItem.cs プロジェクト: supyrb/signals
 private void DrawDispatchPropertyFields()
 {
     for (var i = 0; i < argumentTypes.Length; i++)
     {
         var argumentType  = argumentTypes[i];
         var argumentValue = argumentValues[i];
         argumentValues[i] = SignalsEditorUtilities.DrawFittingEditorField(argumentType.Name, argumentType, argumentValue);
     }
 }
コード例 #2
0
        private static void FindOrCreateInstance()
        {
            if (instance != null)
            {
                return;
            }

            instance = SignalsEditorUtilities.FindOrCreateEditorAsset <SignalsEditorDatabase>("Signals", "SignalsEditorDatabase.asset", false);
        }
コード例 #3
0
            private static GUIStyle CreateLabelStyle(string name, Color color)
            {
                var style = new GUIStyle(EditorStyles.label);

                style.name = name;
                var backgroundTex = SignalsEditorUtilities.CreateColorTexture(color);

                backgroundTex.hideFlags = HideFlags.HideAndDontSave;
                style.normal.background = backgroundTex;
                return(style);
            }