- Home /
EditorGUILayout.Curve - Presets are only going to 1,1
Hello,
I'm building an editor extension and right now I'm working with the curve editor. I have it setup so that I can edit the curve values, based on values the user inputs.
When I open up the curve/graph editor, if I click one of the presets, the preset will only graph that path from 0,0 to 1,1. Normally that's not really an issue since you just drag the second end point to where you want it, but in this case I'm not using the graph for small numbers.
The graph can go into hundreds of thousands or more based on user values (I'm not using them for animation, more for plotting curves visually). This creates a problem in that one, the window will only let you zoom out so much, so for example if I have a value at 200,000, the window is only showing up to 100,000, so I have to hit the preset curve, scroll back down to 0,0, grab the point, and slowly drag it up to 200,000 and then place it on the values I want.
So one, this would be a lot easier if I could just type in the values, but I'm not seeing or finding a way to that. But ideally, the preset curves would just fill the values, rather than reset to 1,1.
Does anyone know how to make it use the full range, or to let the end user type in the values of the points? I feel like it's too tedious to be used effectively as is.
Thank you very much!