19-07-2018, 03:54 PM
(This post was last modified: 19-07-2018, 03:56 PM by domkonecny.)
Hello
I want to change air density on my cloths on runtime. It works perfectly well if i change it manually in editor. I am probably just missing some call, and I cant find it in the docs.
Now it looks like this.
The value changes on the component in editor, but has no effect.
I want to change air density on my cloths on runtime. It works perfectly well if i change it manually in editor. I am probably just missing some call, and I cant find it in the docs.
Now it looks like this.
Code:
ObiAerodynamicConstraints aero;
aero = this.GetComponent<ObiAerodynamicConstraints>();
aero.airDensity = 0.04f;
The value changes on the component in editor, but has no effect.