Using an interactive graph in the editor.
Hey there! On I script I'm writing I have a variable that depends on another one's value. The dependency can't be described with a mathematical function (afaik) due to its complexity, and I want to make it as easy to edit as possible. After some googling and reading the documentation I found the class AnimationCurve, but I just can't get it to work because I don't really understood how it is supposed to be used. I'm fairly new to C#, the last time I used unity was like three years ago and I only knew UnityScript.
Posted Oct 22, 2019, 7:00 PM UTC
public AnimationCurve curve;
void GetYValueFromTheCurve(float x){
}