Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created February 1, 2019 07:07
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save todorok1/941c2daad4a94b5368556ef4dcc7979b to your computer and use it in GitHub Desktop.
Unityでシリアライズ対象となったフィールドの値がどこに保存されるかのテスト
public class SerializeTestScript : MonoBehaviour {
// privateなフィールド
int maxHp;
// publicなフィールド
public int atk;
// [SerializeField]を付けたフィールド
[SerializeField]
int def;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment