Strange issue with "create menu" (since 2018.3 ?)
Good evening everybody,
For my game, I have create two Scriptable Objects, and I can create them from the "create" menu. Everything was fine until the beginning of the week : my "create" menu show me hundred times of the scriptable objects (see the screen capture), and Unity show me a warning message (see the other capture). It seems to appear with my upgrade in 2018.3.
Is someone have an idea ? Regards,
Vincent
Hello Vega, I have just seen your comment. Thank you.
here is the code in the scriptable objects, in order to create it directly in the "create" menu : "[CreateAsset$$anonymous$$enu(menuName = "Caterpillar Girl Data / Grid Data")] public class GridDatas : ScriptableObject"
I hope it will help
Answer by Vega4Life · Dec 22, 2018 at 02:10 PM
Thanks for the code @magnificent7_unity. The problem is you aren't allowed to have spaces in the attribute. Change it to this and restart Unity.
[CreateAssetMenu(menuName = "CaterpillarGirlData/GridData")]
Sometimes the editor picks up the changes right away, but usually its best to restart Unity. I hope this helps!
Your answer
![](https://koobas.hobune.stream/wayback/20220612184320im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
CreateAssetMenuAttribute menuName and order constructors 1 Answer
Does loading a ScriptableObject on runtime and modifying it affect the ScriptableObject in file? 1 Answer
Scripting Movement Fails for Instantiated Prefab 2 Answers
Items/Inventory system using Scriptable Objects and Composition instead Inheritance. 0 Answers
What is the benefit of creating a scriptable object? 2 Answers