示例#1
0
 private void InternalOnSceneView()
 {
     if (EditorGUIUtility.IsGizmosAllowedForObject(this.target))
     {
         if ((SceneView.lastActiveSceneView != null) && this.m_ShouldFocus)
         {
             this.m_ShouldFocus = false;
             SceneView.lastActiveSceneView.FrameSelected();
         }
         this.m_Editor.PullProbePositions();
         LightProbeGroup target = this.target as LightProbeGroup;
         if (target != null)
         {
             if (this.m_Editor.OnSceneGUI(target.transform))
             {
                 this.StartEditProbes();
             }
             else
             {
                 this.EndEditProbes();
             }
         }
         this.m_Editor.PushProbePositions();
     }
 }
        private void InternalOnSceneView()
        {
            if (!EditorGUIUtility.IsGizmosAllowedForObject(target))
            {
                return;
            }

            if (SceneView.lastActiveSceneView != null)
            {
                if (m_ShouldFocus)
                {
                    m_ShouldFocus = false;
                    SceneView.lastActiveSceneView.FrameSelected();
                }
            }

            m_Editor.PullProbePositions();
            var lpg = target as LightProbeGroup;

            if (lpg != null)
            {
                if (m_Editor.OnSceneGUI(lpg.transform))
                {
                    StartEditProbes();
                }
                else
                {
                    EndEditProbes();
                }
            }
            m_Editor.PushProbePositions();
        }