StationObscurum/Assets/Packages/Heat - Complete Modern UI/Scripts/Input/ControllerPreset.cs

26 lines
717 B
C#
Raw Normal View History

2024-02-02 04:45:59 +01:00
using System.Collections.Generic;
using UnityEngine;
namespace Michsky.UI.Heat
{
[CreateAssetMenu(fileName = "New Controller Preset", menuName = "Heat UI/Controller/New Controller Preset")]
public class ControllerPreset : ScriptableObject
{
[Header("Settings")]
public string controllerName = "Controller Name";
[Space(10)]
public List<ControllerItem> items = new List<ControllerItem>();
public enum ItemType { Icon, Text }
[System.Serializable]
public class ControllerItem
{
public string itemID;
public ItemType itemType;
public Sprite itemIcon;
public string itemText;
}
}
}