2025-11-05 21:34:21 +08:00
|
|
|
using TMPro;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace UIFrameAPI
|
|
|
|
|
{
|
2025-11-13 16:24:49 +08:00
|
|
|
public struct TransformConfig
|
|
|
|
|
{
|
|
|
|
|
public Vector3? Position;
|
|
|
|
|
public Quaternion? Rotation;
|
|
|
|
|
public Vector3? Scale;
|
|
|
|
|
}
|
2025-11-05 21:34:21 +08:00
|
|
|
public abstract class UIFrameAPIComponent:MonoBehaviour
|
|
|
|
|
{
|
2025-11-08 14:03:17 +08:00
|
|
|
// public abstract bool CreateCanvas(string name);
|
2025-11-05 21:34:21 +08:00
|
|
|
|
|
|
|
|
//设置游戏主菜单的原版标题
|
|
|
|
|
public abstract bool SetTitleImage(Sprite sprite);
|
2025-11-13 16:24:49 +08:00
|
|
|
public abstract bool SetTitleText(string text);
|
|
|
|
|
public abstract bool SetTitlePosition(Vector3 position);
|
|
|
|
|
public abstract bool SetTitleTextPosition(Vector3 position);
|
2025-11-05 21:34:21 +08:00
|
|
|
|
2025-11-08 14:03:17 +08:00
|
|
|
// //创建一个TMP字体
|
|
|
|
|
// public abstract TMP_FontAsset CreateFontAsset(string fontFilePath);
|
|
|
|
|
//
|
|
|
|
|
// //设置游戏字体
|
|
|
|
|
// public abstract bool SetFont(TMP_FontAsset font);
|
2025-11-05 21:34:21 +08:00
|
|
|
|
|
|
|
|
public abstract Texture2D? LoadTexture(string imageFilePath);
|
|
|
|
|
}
|
|
|
|
|
}
|