mirror of
https://git.aaro.dev/VRCBoard/vrcboard-udon.git
synced 2026-03-17 04:29:46 +00:00
Add new meta files and initial implementations for VRCBoard components and materials
This commit is contained in:
27
Components/VRCBoardSupporterBoardTMP.cs
Normal file
27
Components/VRCBoardSupporterBoardTMP.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
|
||||
using UdonSharp;
|
||||
using UnityEngine;
|
||||
using VRC.SDKBase;
|
||||
using VRC.Udon;
|
||||
|
||||
namespace VRCBoard.Components
|
||||
{
|
||||
public class VRCBoardSupporterBoardTMP : VRCBoardSupporterBoardBase
|
||||
{
|
||||
public TMPro.TextMeshPro[] text;
|
||||
public TMPro.TextMeshProUGUI[] textUGUI;
|
||||
|
||||
protected override void UpdateSupporterBoard(string supporterList)
|
||||
{
|
||||
Debug.Log("Updating supporter board");
|
||||
for (int i = 0; i < text.Length; i++)
|
||||
{
|
||||
text[i].text = supporterList;
|
||||
}
|
||||
for (int i = 0; i < textUGUI.Length; i++)
|
||||
{
|
||||
textUGUI[i].text = supporterList;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user