- Home /
[Range] attribute saves to undo-history too often.
Hello.
As stated in the title, the [Range]
attribute saves changes to history more than enough. If I drag an int Range from 0 to 20 slow enough in the Inspector, that variable will be saved to my undo-history 20 times. If the variable is a float that would be even worse.
Is it possible for '[Range]' to only update when i release the slider? If not, can I get some directions to a custom attribute that has this?
I'm sorry if this is already covered somewhere else, but I couldn't find any answers. I guess I'm searching with the incorrect keywords.
Thank you.
Answer by donutLaserDev · Mar 23, 2018 at 08:20 AM
This is actually a bug which is already fixed in future versions, as well as in 2017.3.0p1 and 2017.4.0f1
Thanks for the fast answer, I didn't know it was a bug. Although I don't think we're gonna change the Unity version on the current project soon. So if that is the case, I would like to keep this question up for a temporary solution.