Parameter driver randomize doesnt work if bool is cast as float
lackofbindings
If you have a parameter that is synced as a bool, but in the animator as a float (for use in a blend tree), normally it is cast between types and everything works fine. However if you use the randomize option on the parameter driver for say between 0 and 1, then the value of the bool (because it is a float on the animator side) can be and fractional value between 0 and 1. Compounding this, the casting for bools is not rounded, so any value that is not 0.0 is considered True, so it will almost always become true.
This makes it almost impossible to randomize a bool if it is also used in a blend tree.
I think this could be fixed if we had an optional checkbox on the randomize mode to only use whole numbers, this should work for bools and ints that are floats.
Log In