コード例 #1
0
        public override void OnFlowToolbarGUI(GUIStyle buttonStyle)
        {
            base.OnFlowToolbarGUI(buttonStyle);

            if (FlowSystem.IsCompileDirty() == true)
            {
                var color = GUI.color;

                GUI.color = Color.red;
                if (GUILayout.Button("Recompile needed", buttonStyle) == true)
                {
                    Compiler.ShowEditor(null, () => {
                        FlowSystem.SetCompileDirty(state: false);
                    });
                }

                GUI.color = color;
            }
        }