How to make a line graph in the unity inspector

I've seen a lot of questions about how to make a line graph in the unity play space, but not in the inspector. I wanted to do something like this , but be able to insert input from the script.

+3


source to share


1 answer


I believe that what you are looking for can be satisfied with the unity built into the curveField . In theory, this is intended for animation, but I've seen it used for things like motion profiles and complex interpolations.



What makes it better than a line graph is that it can be edited either from the editor or as you wish from a script using a method AnimationCurve.AddKey

(you need to dig the curve out of the curveField)

+2


source







All Articles