Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
SerializeFieldとNonSerializedの頂上バトル
// [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
You can’t perform that action at this time.