Serialized fields are not shown in inspector

Nik

New member
I've extended AnimatorMonitor class and added my Serialized fields: bodyHorizontal, bodyVertical but they are not visible in the inspector. Am I missing something?

public class MyAnimatorMonitor : AnimatorMonitor
{
[SerializeField] public float bodyHorizontal = 0.3f;
[SerializeField] public float bodyVertical = 0.3f;
}
 

Attachments

  • Capture.PNG
    Capture.PNG
    27.5 KB · Views: 4
AnimatorMonitor comes with its own inspector script, so it will not show your variables. You need also to extend the inspector script.
 
  • Like
Reactions: Nik
Top