Created
June 12, 2018 09:11
-
-
Save todorok1/c15e0db8ca9be13ee19fbe29738ed7cc 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 = 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