初心者です。
Unity3Dでゲーム制作をしていました。
下のコードを書いたところ
C#
1using System.Collections; 2using System.Collections.Generic; 3using UnityEngine; 4 5public class notegene : MonoBehaviour 6{ 7 [SerializeField] Note notePreFab; 8 9 private void Start() 10 { 11 SpawnNote(); 12 } 13 14 public void SpawnNote() 15 { 16 Instantiate(notePreFab, new Vector3(2.5, 0.001 - 50.5), Quanternion.identify); 17 } 18}
下のエラーコードが出てきてしまいました。
errorcode
1error CS0246: The type or namespace name 'Note' could not be found (are you missing a using directive or an assembly reference?)
SerializeFieldの部分がうまくいかないです。
どう直したらよろしいのでしょうか?
Noteはどこで定義しているのですか?

回答2件
あなたの回答
tips
プレビュー