fix
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user