unity 公共变量 inspector面板

在c#脚本中的变量 无法在unity inspector面板中显示

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MouseLook : MonoBehaviour
{
    public float sensitivityHor = 9.0f;
    [System.Serializable]
    public enum RotationAxes{
        MouseXAndY=0,
        MouseX=1,
        MouseY=2
    }
    public RotationAxes axes = RotationAxes.MouseXAndY;
    // Start is called before the first frame update
    void Start()
    {
        
    }

img