奇怪的调
This commit is contained in:
@@ -123,7 +123,7 @@ namespace Ichni.Editor
|
||||
List<Vector3> newPositions = new List<Vector3>();
|
||||
|
||||
// 添加距离检测逻辑
|
||||
bool withinDistance = Vector3.Distance(sceneCamera.transform.position, point) <= 100f;
|
||||
bool withinDistance = Vector3.Distance(sceneCamera.transform.position, point) <= 50f;
|
||||
|
||||
for (float x = minX; x <= maxX; x += step)
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Ichni.Editor
|
||||
public class GridController : MonoBehaviour, IBaseElement
|
||||
{
|
||||
public BaseElement_BM matchedBM { get; set; }
|
||||
|
||||
|
||||
public EditorGrid yPlaneGrid;
|
||||
public EditorGrid xPlaneGrid;
|
||||
public EditorGrid zPlaneGrid;
|
||||
@@ -34,18 +34,18 @@ namespace Ichni.Editor
|
||||
public void SetUpInspector()
|
||||
{
|
||||
IHaveInspection inspector = EditorManager.instance.uiManager.inspector;
|
||||
|
||||
|
||||
var container = inspector.GenerateContainer("Grid Controller");
|
||||
|
||||
|
||||
//网格设置
|
||||
var gridSettings = container.GenerateSubcontainer(3);
|
||||
var yPlaneToggle =
|
||||
var yPlaneToggle =
|
||||
inspector.GenerateToggle(this, gridSettings, "Y Plane", nameof(yPlaneEnabled))
|
||||
.AddListenerFunction(RefreshPlanes);
|
||||
var xPlaneToggle =
|
||||
var xPlaneToggle =
|
||||
inspector.GenerateToggle(this, gridSettings, "X Plane", nameof(xPlaneEnabled))
|
||||
.AddListenerFunction(RefreshPlanes);
|
||||
var zPlaneToggle =
|
||||
var zPlaneToggle =
|
||||
inspector.GenerateToggle(this, gridSettings, "Z Plane", nameof(zPlaneEnabled))
|
||||
.AddListenerFunction(RefreshPlanes);
|
||||
|
||||
@@ -60,7 +60,7 @@ namespace Ichni.Editor
|
||||
xPlaneGrid.gameObject.SetActive(xPlaneEnabled);
|
||||
zPlaneGrid.gameObject.SetActive(zPlaneEnabled);
|
||||
yPlaneGrid.isShowingPositionText = isYPlaneShowingPositionText;
|
||||
|
||||
|
||||
if (!yPlaneGrid.isShowingPositionText)
|
||||
{
|
||||
foreach (KeyValuePair<GameObject, Vector3> positionText in yPlaneGrid.positionTexts)
|
||||
|
||||
Reference in New Issue
Block a user