Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

unity createassetmenu

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;
}
Comment

unity createassetmenu


[CreateAssetMenu(menuName = "My Objects/Things/First Thing", order = 11)]
public class FirstThing : ScriptableObject
{
}

[CreateAssetMenu(menuName = "My Objects/Things/Second Thing", order = 12)]
public class SecondThing : ScriptableObject
{
}

[CreateAssetMenu(menuName = "My Objects/Things/Third Thing", order = 13)]
public class ThirdThing : ScriptableObject
{
}

[CreateAssetMenu(menuName = "My Objects/Widgets/First Widget", order = 1)]
public class FirstWidget: ScriptableObject
{
}

[CreateAssetMenu(menuName = "My Objects/Widgets/Second Widget", order = 2)]
public class SecondWidget: ScriptableObject
{
}

Comment

PREVIOUS NEXT
Code Example
Csharp :: set width of rect transform unity 
Csharp :: wpf bind to self 
Csharp :: c# random enum 
Csharp :: how to set the fps in monogame 
Csharp :: enable script unity 
Csharp :: how get url in laravel 
Csharp :: how to change the color of your text in c# 
Csharp :: c# play sound 
Csharp :: c# print to console 
Csharp :: c# loop through datatable 
Csharp :: c# how to check string is number 
Csharp :: unity change sprite source image 
Csharp :: bash if null or empty 
Csharp :: get hwid c# 
Csharp :: creatw list of int in C# 
Csharp :: how to create directory folder in c# 
Csharp :: C# cycle through directory 
Csharp :: c# check if element is last in list 
Csharp :: get datacontext of parent wpf 
Csharp :: how to reference text mesh pro unity 
Csharp :: percentage in c# 
Csharp :: c# repeat string x times 
Csharp :: how to spawn coins randomly around the screen unity 2d 
Csharp :: string to list c# 
Csharp :: how to convert a bitmap to a base64 string c# xamarin universal 
Csharp :: unity particle system playing at the wrong location 
Csharp :: add items to listbox from text file c# 
Csharp :: how to turn off sprite renderer in unity 
Csharp :: c# winforms textbox readonly 
Csharp :: how to generate random letters in C# 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =