📜  unity create scriptableobject 资产 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:41.352000             🧑  作者: Mango

代码示例1
using UnityEngine;
using System.Collections;

[CreateAssetMenu(fileName = "Data", menuName = "Inventory/List", order = 1)]
public class MyScriptableObjectClass : ScriptableObject {
    public string objectName = "New MyScriptableObject";
    public bool colorIsRandom = false;
    public Color thisColor = Color.white;
    public Vector3[] spawnPoints;
}