我需要帮助😭

timeline下面的子菜单不知道怎么适配比例
还有性能不是很好(TimeLineTabS)下面的一坨
This commit is contained in:
2025-02-21 21:12:57 +08:00
parent 65992750b0
commit dfa136eb3a
4 changed files with 21 additions and 13 deletions

View File

@@ -112,7 +112,7 @@ namespace Ichni.Editor
timePointerArea.anchoredPosition =
new Vector2((timePointerArea.sizeDelta.x / 2) -
((startTime + songInformation.delay) / timeline.timePerBeat) * timePointerInterval, 0);
(startTime + songInformation.delay) / timeline.timePerBeat * timePointerInterval, 0);
float proportion = mainTimePointer.anchoredPosition.x / visibleTimePointerArea.rect.width;
@@ -125,6 +125,7 @@ namespace Ichni.Editor
/// </summary>
/// <param name="beatDivider">细分X分音符</param>
/// <param name="index"></param>
private void CreatePointer(int beatDivider, int index)
{
TimePointer pointer = Instantiate(timePointerPrefab, timePointerArea).GetComponent<TimePointer>();