Example #1
0
 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);
     }
 }
Example #2
0
        private static void FindOrCreateInstance()
        {
            if (instance != null)
            {
                return;
            }

            instance = SignalsEditorUtilities.FindOrCreateEditorAsset <SignalsEditorDatabase>("Signals", "SignalsEditorDatabase.asset", false);
        }
Example #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);
            }