timeline居然没看懂,那个点击估计得重写
这种要怎么侦测呀
This commit is contained in:
2025-02-21 19:36:03 +08:00
parent 6781de4d53
commit 65992750b0
26 changed files with 24998 additions and 23113 deletions

View File

@@ -10,11 +10,11 @@ namespace Ichni.Editor
public class SceneCamera : MonoBehaviour, IBaseElement
{
public Camera camera;
public GameCamera.CameraViewType viewType;
public float perspectiveAngle;
public float orthographicSize;
public BaseElement_BM matchedBM { get; set; }
public void SetUpInspector()
@@ -29,12 +29,12 @@ namespace Ichni.Editor
{
camera.orthographic = viewType == GameCamera.CameraViewType.Orthographic;
});
perspectiveAngleField.AddListenerFunction(_ =>
{
camera.fieldOfView = perspectiveAngle;
});
orthographicSizeField.AddListenerFunction(_ =>
{
camera.orthographicSize = orthographicSize;
@@ -45,7 +45,7 @@ namespace Ichni.Editor
string GetEulerAngles() => $"Euler Angles: {camera.transform.eulerAngles}";
var eulerAnglesText = inspector.GenerateHintText(this, container, GetEulerAngles);
}
public void MoveCamera(Vector3 delta)
{
camera.transform.position += delta;