i have a serialized class in the follow format
[Serializable]
public class MyClass
{
[SerializedField] private int x;
[SerializedField] private int y;
}
in a prefab variant when i change x is does correctly store that the X is changed. however i want these 2 variables to be intrinsically linked. i.e. if X is serialied into the variant, i want Y seriialized into the variant as well.
is there an attribute i can add to my class or my fields so the entire class or set of fields are the variant not not just the one variable?