20160520 유니티

Unity3D.VR 2016. 5. 20. 17:00

# SerializeField

필드를 강제로 Serialize해서 유니티의 인스펙터에서 컨트롤 할 수 있게 한다.


//This field gets serialized even though it is private

//because it has the SerializeField attribute applied.

[SerializeField]

private bool hasHealthPotion = true;




: