您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
34 行
930 B
34 行
930 B
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
[System.Serializable]
|
|
public struct CustomInputContextIcon
|
|
{
|
|
public string customInputContextString;
|
|
public Sprite customInputContextIcon;
|
|
}
|
|
|
|
[CreateAssetMenu(fileName = "Device Display Settings", menuName = "Scriptable Objects/Device Display Settings", order = 1)]
|
|
public class DeviceDisplaySettings : ScriptableObject
|
|
{
|
|
|
|
public string deviceDisplayName;
|
|
|
|
public Color deviceDisplayColor;
|
|
|
|
public bool deviceHasContextIcons;
|
|
|
|
public Sprite buttonNorthIcon;
|
|
public Sprite buttonSouthIcon;
|
|
public Sprite buttonWestIcon;
|
|
public Sprite buttonEastIcon;
|
|
|
|
public Sprite triggerRightFrontIcon;
|
|
public Sprite triggerRightBackIcon;
|
|
public Sprite triggerLeftFrontIcon;
|
|
public Sprite triggerLeftBackIcon;
|
|
|
|
public List<CustomInputContextIcon> customContextIcons = new List<CustomInputContextIcon>();
|
|
|
|
}
|