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.
Asked: 2023-06-03 06:47:53 +0000
Seen: 17 times
Last updated: Jun 03 '23