Is it possible to set or override the default state for a structure?
As an example I have an
enum something{a,b,c,d,e};
and a struc
Kinda dumb, but works
public readonly static float default_value = 1; public struct YourStruct{ public float yourValue{ get { return _yourValue + default_value; } set { _yourValue= value - default_value; } } public float _yourValue; }