Exemplo n.º 1
0
    private void OnSceneGUI(SceneView sceneView)
    {
        SelectionGridSceneView();
        OnSelectionEditChangedCheck();

        if (_grid != null)
        {
            //Update grid debug position
            Vector3 positionGrid = _grid.Origin;
            positionGrid.y += _offset_grid_y;
            _plane_y.SetNormalAndPosition(_grid.GetAxe(1), positionGrid);

            SwitchEditMode();

            if (_debug_grid)
            {
                FuncEditor.DebugGrid(_grid, DebugsColor.grid_help, _offset_grid_y, _size_grid);
            }
        }
    }