예제 #1
0
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();

            MicroLightManager manager = (MicroLightManager)target;

            if (EmProjectionMode != manager.mProjectionMode)
            {
                EmProjectionMode = manager.mProjectionMode;

                manager.UpdateBindings();
                manager.TempmProjectionMode = manager.mProjectionMode;
            }


            if (EmRenderMode != manager.mRenderMode)
            {
                EmRenderMode = manager.mRenderMode;
                if (manager.mRenderMode == RenderMode.LR3D)
                {
                    manager.mProjectionMode = ProjectionMode.Surface;
                    manager.UpdateBindings();
                    manager.TempmProjectionMode = manager.mProjectionMode;
                }
            }
            if (EPDI != manager.PDI)
            {
                EPDI = manager.PDI;
                manager.UpdateCameraPDI();
            }
        }
예제 #2
0
        public void OnEnable()
        {
            MicroLightManager manager = (MicroLightManager)target;

            EmRenderType                  = manager.mRenderType;
            EmProjectionMode              = manager.mProjectionMode;
            EmRenderMode                  = manager.mRenderMode;
            EmPlayAeraSize                = manager.mPlayAeraSize;
            EPlayAeraDrawGridColor        = manager.PlayAeraDrawGridColor;
            EPlayAeraDrawGridOutlineColor = manager.PlayAeraDrawGridOutlineColor;
            EPlayAeraEditorDrawGrid       = manager.PlayAeraEditorDrawGrid;
            manager.TempmProjectionMode   = manager.mProjectionMode;
            EPDI = manager.PDI;
        }