fork download
  1. using UnityEngine;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEditor;
  5.  
  6. public class CreateBuffList
  7. {
  8. [MenuItem("Assets/Create/BuffList")]
  9. public static BuffList CreateList()
  10. {
  11. BuffList buffs = ScriptableObject.CreateInstance<BuffList>(); // Buff list is a class that creates BuffProperties list.
  12.  
  13. AssetDatabase.CreateAsset(buffs, "Assets/BuffAsset.asset");
  14. AssetDatabase.SaveAssets();
  15. return buffs;
  16. }
  17. }
  18.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(1,7): error CS0246: The type or namespace name `UnityEngine' could not be found. Are you missing an assembly reference?
prog.cs(4,7): error CS0246: The type or namespace name `UnityEditor' could not be found. Are you missing an assembly reference?
prog.cs(9,19): error CS0246: The type or namespace name `BuffList' could not be found. Are you missing an assembly reference?
Compilation failed: 3 error(s), 0 warnings
stdout
Standard output is empty