Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
シリアライズの確認
// privateに[SerializeField]をつけない(表示されない)
int mp = 711;
// privateに[SerializeField]と[HideInInspector]の両方をつける
[SerializeField][HideInInspector]
int atk = 711;
void Start () {
Debug.Log(characterName + "のmp : " + mp);
Debug.Log(characterName + "のatk : " + atk);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.