Attribute disables the field when Unity is in Play mode.
[DisableInPlayMode] public int initialCount; [DisableInPlayMode] public GameObject prefab;
Last updated 1 month ago