This commit is contained in:
SoulliesOfficial
2025-04-18 22:34:55 -04:00
parent 97427b0bf3
commit d7ce55cd04
21 changed files with 335 additions and 1590 deletions

View File

@@ -242,8 +242,8 @@ namespace Ichni.Editor
Ray ray = EditorManager.instance.cameraManager.currentCamera.ScreenPointToRay(mousePosition);
if (Physics.Raycast(ray, out RaycastHit hit, float.MaxValue, LayerMask.GetMask("Selectable")))
{
GameElement clickedElement = hit.collider.GetComponent<GameElement>();//TODO: 对于Hold这种复杂的元素需要使用连接脚本进行获取
(clickedElement as IHaveSelectSubmodule)?.selectSubmodule.SelectGameElement();
SelectionConnector connector = hit.collider.GetComponent<SelectionConnector>();//TODO: 对于Hold这种复杂的元素需要使用连接脚本进行获取
(connector.connectedGameElement as IHaveSelectSubmodule)?.selectSubmodule.SelectGameElement();
}
}
}

View File

@@ -41,7 +41,7 @@ namespace Ichni.Editor
.AddListenerFunction(() => sceneCamera.orthographicSize = orthographicSize);
//摄像机位置与旋转设置
var transformSettings = container.GenerateSubcontainer(3);
var transformSettings = container.GenerateSubcontainer(1);
var positionInputFields =
inspector.GenerateVector3InputField(this, transformSettings, "Position", nameof(cameraPosition), true)
.AddListenerFunction(() => sceneCamera.transform.position = cameraPosition);