1.解决了Track面向的问题2.新增Surface类型的Spline渲染器3.新增with后缀表达式

This commit is contained in:
2025-10-07 01:45:52 +08:00
parent 60a5347dde
commit 54a28c6671
10 changed files with 1408 additions and 487 deletions

View File

@@ -32,7 +32,13 @@ namespace Demo.Editor
baseTypeName = baseTypeName[..baseTypeName.LastIndexOf('`')];
}
stream.Write($"#include \"{baseTypeName}.helper.h\"\n\n#define {typeName}\n\n");
}
stream.Write(@"/*
<EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ı<EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>󽫻<EFBFBD>ԭ
e.g: LoadSubScript(SplineCore, ""SplineCore.h"") with(r = 1, g = 1, b = 1);
*/");
stream.Write($"#define with(...)\n\n");
}
private static void WriteCPPStyleFunction(StreamWriter stream, string name, IEnumerable<string> paramList, string description)
{

View File

@@ -1,9 +1,5 @@
using System.Collections;
using System.Collections.Generic;
using Convention;
using Convention.Internal;
using Convention.WindowsUI;
using Convention.WindowsUI.Variant;
using UnityEngine;
using UnityEngine.Events;
@@ -63,7 +59,7 @@ namespace Demo.Editor.UI
public void ResizeOnTimeline()
{
if(IsSetup==false)
if (IsSetup == false)
{
gameObject.SetActive(false);
return;
@@ -76,7 +72,7 @@ namespace Demo.Editor.UI
Vector3 minPosition = DragAreaInternal.rect.min - DragObjectInternal.rect.min;
Vector3 maxPosition = DragAreaInternal.rect.max - DragObjectInternal.rect.max;
if(DragObjectInternal.localPosition.y< minPosition.y|| DragObjectInternal.localPosition.y > maxPosition.y)
if (DragObjectInternal.localPosition.y < minPosition.y || DragObjectInternal.localPosition.y > maxPosition.y)
{
RawButton.gameObject.SetActive(false);
return;
@@ -92,7 +88,7 @@ namespace Demo.Editor.UI
if (Mathf.Approximately(durationX, durationY))
{
from = (durationX - clip.x) / left2rightDuration;
to = from + 0.1f;
to = Mathf.Max(from + 0.1f, EditorController.instance.SongOffset);
}
else
{