Unity Editor GUI cant be selected propertly

sometimes when i create public variables to customize in the editor GUI i get a bug where i cant select the variable i want and when i do, it changes more than one variable or i type a value and it does not change, messing everything around, has someone had this same problem too? how did you solve it?

Are you creating references to static classes? For example, this won’t work:

public class Point2D {
    public float x;
    public float y;

public static Point2D zero = new Point2D(0,0);

public MyScript : MonoBehaviour {
    public Point2D myPoint = Point2D.zero;

I haven’t tested the exact code above, but I recently did this to myself with a ScriptableObject subclass.