Ejemplo n.º 1
0
        public static GlassType Create(GlassType original, GlassRenderOrderManager manager)
        {
            GlassType glassType = CreateGlassTypeObject(CopyName(original), manager.gameObject);

            glassType.hideFlags = glassTypeHideFlags;
            glassType.Setup(original);
            return(glassType);
        }
Ejemplo n.º 2
0
        public static GlassType Create(Glass instance, GlassRenderOrderManager manager)
        {
            GlassType glassType = CreateGlassTypeObject(instance.presetName, manager.gameObject);

            glassType.hideFlags = glassTypeHideFlags;
            glassType.Setup(instance);
            return(glassType);
        }
Ejemplo n.º 3
0
        public static GlassType Create(Material _nonGlassMaterial, GlassRenderOrderManager manager)
        {
            GlassType glassType = CreateGlassTypeObject(_nonGlassMaterial.name, manager.gameObject);

            glassType.hideFlags = glassTypeHideFlags;
            glassType.Setup(_nonGlassMaterial);
            glassType.isGlass = false;
            return(glassType);
        }
Ejemplo n.º 4
0
        public static GlassType CreateCopy(GlassType original, GlassRenderOrderManager _manager)
        {
            GlassType copy = CreateGlassTypeObject(CopyName(original), _manager.gameObject);

            copy.Setup(original);

            copy.isCopy   = true;
            copy.original = original;
            original.copies.Add(copy);

            copy.CopyMaterials(original);

            return(copy);
        }
Ejemplo n.º 5
0
        void OnEnable()
        {
            manager = target as GlassRenderOrderManager;

            if (tools == null)
            {
                tools = EditorTools.Create(manager, this);
            }

            manager.RefreshGlassTypes();

            list = new ReorderableList(manager.glassTypes, typeof(GlassType), true, false, false, false);
            list.drawHeaderCallback  = HeaderCallBackDelegate;
            list.drawElementCallback = ElementCallBackDelegate;
            list.onReorderCallback   = ReorderCallBackDelegate;
            list.onChangedCallback   = ChangedCallBackDelegate;
            list.onSelectCallback    = SelectCallBackDelegate;
        }
Ejemplo n.º 6
0
        void OnEnable()
        {
            if (tools == null)
            {
                tools = new EditorTools(toolsName);
            }

            if (manager == null)
            {
                manager = (GlassManager)target;
            }

            if (manager == null)
            {
                return;
            }

            if (renderOrderManager == null)
            {
                renderOrderManager = GlassRenderOrderManager.Instance;
            }

            manager.InitPaths();

            settings = manager.LoadSystemSettings();

            manager.LoadManager();

            UpdateTextureAAIndex();

            manager.UpdateActiveMaterials();

            if (!manager.LayersExist())
            {
                Show_LayersWarning();
            }
        }
Ejemplo n.º 7
0
 public GlassType CreateCopy(GlassRenderOrderManager _manager)
 {
     return(GlassType.CreateCopy(this, _manager));
 }