Problem with "movement settings"

So i’m writing a script for the player movements

[SerializeField]
public class MovementSettings
{
public float JumpSpeed = 6;
public float JumpTime = 0.25f;
}
[SerializeField]
public MovementSettings movement;

and this don’t work and i can’t see the “movement” section on unity if i click on the script

physics settings and animation settings work

MovementSettings should have the System.Serializable attribute instead of the SerializeField attribute. And a public field does not need the SerializeField attribute.

What do you mean with "System Serializable " actually i can’t put that can you show an example on my code?

as you can see the one that appears are those 2

Like this:

[System.Serializable]
public class MovementSettings
{
    public float JumpSpeed = 6;
    public float JumpTime = .25f
}

i already tried that and appears an error like these

2930948--216750--òòò.PNG

It only needs to be given to the MovementSettings class. Not the “movement” field.

It actually works thank you man :).