Add custom head, live character shader control, and live stage control. (#88)

* Bug fix, improved UI layout and live vocals

* Bug Fixes, New Live Compatibility

* Android build support

* Update build.yml

* Update build.yml

* Update build.yml

* Update build.yml

* Update build.yml

* Update build.yml

* Fix issues with the new version of the game

* bug fix

* add config button

* Improve performance

* Sync fork

* bug fix, new uma compatibility

* Add /UserSettings to gitignore

* bug fix, add live characher shader control

* fix compilation errors

* fix compilation errors 2

* fix the live lighting calculation logic

* bug fix, add editor layout settings to gitignore

* bug fix, add editor layout settings to gitignore

* Add time scale keys for live

* live camera bug fix

* add live stage control, optimize live performance

* fix build error

* add uma head custom
This commit is contained in:
CroakFang
2025-07-11 23:23:57 +08:00
committed by GitHub
parent a42ea93ffd
commit 204752d7d6
45 changed files with 2140 additions and 1339 deletions
@@ -1,3 +1,4 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
@@ -82,7 +83,7 @@ namespace Gallop.Live.Cutt
_tempAnim.enabled = false;
}
public void AlterUpdate(float currentTime)
public void AlterUpdate(float currentTime, LiveTimelineKeyTimescaleDataList timescaleKeys)
{
var director = Director.instance;
if (Director.instance.liveMode == 0)
@@ -122,7 +123,34 @@ namespace Gallop.Live.Cutt
{
start = (double)arg.motionHeadFrameSeparetes[charaIndex] / 60;
}
double interval = (currentTime - arg.FrameSecond) * arg.playSpeed;
double interval = 0;
double last_current_time = currentTime;
if (timescaleKeys.thisList.Count > 0)
{
// apply timescale keys
for (int i = timescaleKeys.thisList.Count - 1; i >= 0; i--)
{
var scaleKey = timescaleKeys.thisList[i];
if (scaleKey.FrameSecond <= currentTime)
{
if (scaleKey.FrameSecond <= arg.FrameSecond)
{
interval += (last_current_time - arg.FrameSecond) * scaleKey.Timescale * arg.playSpeed;
break;
}
else
{
interval += (last_current_time - scaleKey.FrameSecond) * scaleKey.Timescale * arg.playSpeed;
last_current_time = scaleKey.FrameSecond;
}
}
}
}
else
{
interval = (currentTime - arg.FrameSecond) * arg.playSpeed;
}
float currentAnimationTime = (float)(start + interval);
if (anim)