- Home /
Question by
aatroxvanz · Jun 07, 2019 at 02:51 PM ·
assetmenuscriptableobjectcreate
I can't find my scriptable object though I've creat asset menu...
I have a script:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(fileName ="HelloWorld",menuName ="testing",order=1)]
public class Testscriptobj : ScriptableObject {
}
I wrote this according to tutorial:
using UnityEngine;
[CreateAssetMenu(fileName = "Data", menuName = "ScriptableObjects/SpawnManagerScriptableObject", order = 1)]
public class SpawnManagerScriptableObject : ScriptableObject
{
public string prefabName;
public int numberOfPrefabsToCreate;
public Vector3[] spawnPoints;
}
but the object "HelloWorld" didn't appear in my assets menu:
I'II very appreciate if anyone solve my stupid problem,thanks a lot!
未命名.png
(46.4 kB)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612202807im_/https://answers.unity.com/themes/thub/images/avi.jpg)