Displaying Property Variables in the Script Component

I created a property variable in C# in the hopes that they would display under my Script Component in Unity.

public float Speed
    {
        get
        {
            return speed;
        }
        set
        {
            speed = value;
        }
    }

However, the property variable I created isn’t being displayed under the Unity component.

114234-scriptcomponent.png

Are we unable to display property variables in Unity and I just have to create a public float variable? Or is there a way to display the property variable that I missed?

Include the SerializedField tag

   [SerializeField]
        public int strength
        {
            get {return m_strength; }
            set {m_strength = value; }
        }

This is all you need to show it in the inspector window.

public float speed;

something like this:

public class ExampleClass : MonoBehavior {

    public float speed;

    void Start() {

    }

}