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); } }
private static void FindOrCreateInstance() { if (instance != null) { return; } instance = SignalsEditorUtilities.FindOrCreateEditorAsset <SignalsEditorDatabase>("Signals", "SignalsEditorDatabase.asset", false); }
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); }