feat: expand editor scripting asset and viewport flow

This commit is contained in:
2026-04-03 13:22:30 +08:00
parent ed8c27fde2
commit a05d0b80a2
124 changed files with 10397 additions and 1737 deletions

View File

@@ -27,6 +27,8 @@ namespace Gameplay
public float Speed;
public float ObservedFixedDeltaTime;
public float ObservedConfiguredFixedDeltaTime;
public float ObservedConfiguredFixedDeltaTimeInUpdate;
public float ObservedUpdateDeltaTime;
public float ObservedLateDeltaTime;
public string Label = string.Empty;
@@ -103,6 +105,7 @@ namespace Gameplay
{
FixedUpdateCount += 1;
ObservedFixedDeltaTime = Time.deltaTime;
ObservedConfiguredFixedDeltaTime = Time.fixedDeltaTime;
}
public void Update()
@@ -110,6 +113,7 @@ namespace Gameplay
UpdateCount += 1;
Speed += 1.0f;
ObservedUpdateDeltaTime = Time.deltaTime;
ObservedConfiguredFixedDeltaTimeInUpdate = Time.fixedDeltaTime;
ObservedLocalPosition = transform.localPosition;
Quaternion rotation = transform.localRotation;
ObservedLocalRotation = new Vector4(rotation.x, rotation.y, rotation.z, rotation.w);