Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Yes, static fields can be displayed in the Unity Editor.

To do so, you can use the [SerializeField] attribute above the static field you want to display. This will expose the field in the Inspector window of the Editor.

However, keep in mind that static fields are shared between all instances of a class, so modifying them in the Editor can have unforeseeable consequences. Use caution when exposing static fields in the Editor.