Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created February 1, 2019 07:07
Show Gist options
  • Save todorok1/941c2daad4a94b5368556ef4dcc7979b to your computer and use it in GitHub Desktop.
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