Files
ichni_Creator_Studio/Assets/Scripts/DynamicUI/DynamicUIElements/DynamicUIElement.cs

32 lines
980 B
C#
Raw Normal View History

2025-02-11 22:58:56 -05:00
using System.Collections;
using System.Collections.Generic;
using Ichni.RhythmGame;
using TMPro;
2025-02-11 22:58:56 -05:00
using UnityEngine;
namespace Ichni.Editor
{
public abstract class DynamicUIElement : MonoBehaviour
{
public TMP_Text title;
protected GameElement connectedGameElement => EditorManager.instance.uiManager.inspector.connectedGameElement;
/// <summary>
/// 参数名,通过反射获取饿修改对应变量的值
/// </summary>
public string parameterName;
/// <summary>
/// 是否始终更新如果子类可能用到此变量则在子类中写Update即可
/// </summary>
public bool isAlwaysUpdated;
public virtual void Initialize(string title, string parameterName)
{
this.parameterName = parameterName;
this.title.text = title;
}
2025-02-11 22:58:56 -05:00
//public abstract void ApplyParameters();
}
}