Answer the question
In order to leave comments, you need to log in
How to call your function when creating a ScriptableObject through the context menu?
Here is the scriptable object:
[CreateAssetMenu(fileName = "NewLevel", menuName = "Game/Levels/Level", order = 0)]
public class LevelContext : ScriptableObject
{
public int id;
public int enemyCount;
public List<LevelContext> previousLevels;
public List<LevelContext> nextLevels;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question