Files
UmaViewer/Assets/Scripts/UI/LiveCharacterSelect.cs
T
CroakFang 204752d7d6 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
2025-07-11 17:23:57 +02:00

32 lines
866 B
C#

using UnityEngine;
using UnityEngine.UI;
public class LiveCharacterSelect : MonoBehaviour
{
public CharaEntry CharaEntry;
public string CostumeId;
public string HeadCostumeId;
public Image CharaImage;
public Image CostumeImage;
public Text IndexText;
public void SelectChara(UmaViewerUI ui)
{
if (!ui) return;
ui.CurrentSeletChara = this;
if (!ui.SelectCharacterPannel.activeInHierarchy)
ui.ToggleUIPanel(ui.SelectCharacterPannel);
}
public void SetValue(CharaEntry charaentry, string costumeId, Sprite costumeSprite, string headCostumeId)
{
CharaEntry = charaentry;
CostumeId = costumeId;
HeadCostumeId = headCostumeId;
CharaImage.enabled = true;
CharaImage.sprite = charaentry.Icon;
CostumeImage.sprite = costumeSprite;
}
}