📜  unity createassetmenu - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:54.406000             🧑  作者: 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;
}