Esempio n. 1
0
        public static void DrawBackgroundRect(WindowState state, Rect rect, bool subSequenceMode = false)
        {
            Color c = subSequenceMode ? DirectorStyles.Instance.customSkin.colorSubSequenceBackground : DirectorStyles.Instance.customSkin.colorSequenceBackground;

            EditorGUI.DrawRect(rect, c);
            if (state.IsEditingAPrefabAsset())
            {
                c   = SceneView.kSceneViewPrefabBackground.Color;
                c.a = 0.5f;
                EditorGUI.DrawRect(rect, c);
            }
        }