Show private variables in the inspector - Unity Tips

Channel:
Subscribers:
1,200,000
Published on ● Video Link: https://www.youtube.com/watch?v=xMwjzSlRd00



Duration: 1:04
15,630 views
208


Want to expose a variable in the inspector, but don't want to make it public? Use the SerializeField attribute!

Watch this video in context on our learn site for links to the documentation and other tips:
http://unity3d.com/learn/tutorials/modules/beginner/tips/private-variables-in-the-inspector

Help us caption & translate this video!

http://amara.org/v/V63m/







Tags:
unity
code
script
programming
property
variable
editor gui
editor ui
game design
unitytips
serializefield
serialize field
private
public
attribute