Created
June 12, 2018 14:30
-
-
Save todorok1/c8cc2f33632cfff8a2fc743188ad0341 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
public class NonSerializedCheck : MonoBehaviour { | |
// [System.NonSerialized]をつけてInspectorで非表示にする | |
[System.NonSerialized] | |
public int level = 711; | |
// [System.NonSerialized]をつけないケース | |
public string characterName; | |
// イカ、略 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment