Last active
June 12, 2018 09:07
-
-
Save todorok1/786a787199bf27bac6e8a3a4071e8bdd to your computer and use it in GitHub Desktop.
シリアライズの確認
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// privateに[SerializeField]をつけない(表示されない) | |
int mp; | |
// privateに[SerializeField]と[HideInInspector]の両方をつける | |
[SerializeField][HideInInspector] | |
int atk; | |
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