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(); } }
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; }