Answers for "unity create scriptableobject asset"

C#
4

unity create scriptableobject asset

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;
}
Posted by: Guest on March-05-2020

C# Answers by Framework

Browse Popular Code Answers by Language