private void InternalOnSceneView() { if (!m_EditingPositions) { return; } switch (EditMode.editMode) { case EditMode.SceneViewEditMode.LineRendererEdit: m_PointEditor.EditSceneGUI(); // We need to wait for m_Positions to be updated next frame or we risk calling SetSelection with invalid indexes. if (m_PointEditor.Count != m_Positions.arraySize) { break; } if (m_Positions.arraySize != m_PositionsView.GetRows().Count) { m_PositionsView.Reload(); ResetSimplifyPreview(); } m_PositionsView.SetSelection(m_PointEditor.m_Selection, TreeViewSelectionOptions.RevealAndFrame); break; case EditMode.SceneViewEditMode.LineRendererCreate: m_PointEditor.CreateSceneGUI(); break; } }
private void InternalOnSceneView() { if (!m_EditingPositions) { return; } switch (EditMode.editMode) { case EditMode.SceneViewEditMode.LineRendererEdit: m_PointEditor.EditSceneGUI(); m_PositionsView.SetSelection(m_PointEditor.m_Selection, TreeViewSelectionOptions.RevealAndFrame); break; case EditMode.SceneViewEditMode.LineRendererCreate: m_PointEditor.CreateSceneGUI(); break; } }
private void InternalOnSceneView() { if (!m_EditingPositions) { return; } switch (EditMode.editMode) { case EditMode.SceneViewEditMode.LineRendererEdit: m_PointEditor.EditSceneGUI(); if (m_Positions.arraySize != m_PositionsView.GetRows().Count) { m_PositionsView.Reload(); ResetSimplifyPreview(); } m_PositionsView.SetSelection(m_PointEditor.m_Selection, TreeViewSelectionOptions.RevealAndFrame); break; case EditMode.SceneViewEditMode.LineRendererCreate: m_PointEditor.CreateSceneGUI(); break; } }