24 lines
637 B
C#
Raw Normal View History

2026-05-06 15:07:56 +02:00
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
namespace UMA.CharacterSystem.Examples
{
public class CSLoadableItem : MonoBehaviour
{
public TestCustomizerDD customizerScript;
public string filename = "";
public string filepath = "";
public void loadThisFile()
{
//make sure no others are clicked...
foreach(Button but in this.gameObject.transform.parent.GetComponentsInChildren<Button>())
{
but.interactable = false;
}
customizerScript.LoadListedFile(filename, filepath);
}
}
}