com.soviby.unity.ui.ugui-to.../Assets/Editor/ScriptObject/SettingScriptObject.cs
2024-12-02 22:14:39 +08:00

42 lines
1.1 KiB
C#

#if UNITY_EDITOR
using Sirenix.OdinInspector;
using System;
using System.Collections.Generic;
using Unity.Mathematics;
using UnityEngine;
namespace UguiToolkit.Editor
{
public class SettingScriptObject : SerializedScriptableObject
{
[LabelText("ui预制体存放的路径"), FolderPath]
public string prefabForUIDirPath;
public float distanceDifference = 0.2f;
public bool useTMP;
// 项目配置
public List <TextFontPresetOfUnity> textFontList = new ();
}
[Serializable]
public class TextFontPresetOfUnity
{
[Title("Ps属性")]
public string name;
public List<string> fontNameOfPsd;
public bool stroke; // 使用描边
public Color strokeColor;
public bool allStrokeColor;
public bool shadow; // 使用阴影
public Color shadowColor;
public bool allShadowColor;
[Title("Unity属性")]
public float2 sizeOffset;
public TMPro.TMP_FontAsset tmpAsset;
public string materialPreset;
}
}
#endif