Created
June 13, 2018 03:48
-
-
Save todorok1/2fcd76c147e9ca637170a3af00e22024 to your computer and use it in GitHub Desktop.
SerializeFieldとNonSerializedの頂上バトル
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
// [System.NonSerialized]をつけてInspectorで非表示にする | |
[System.NonSerialized] | |
public int level = 630; | |
// [System.NonSerialized]をつけないケース | |
public string characterName = "FamiliMart"; | |
void Start () { | |
Debug.Log("level : " + level); | |
Debug.Log("characterName : " + characterName); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment