How do you disable "automate thresholds" when creating a mecanim blend tree via script?

Question is title. Can’t find anything in the documentation.

That’s strange, there’s nothing in the BlendTree API…
But it looks like it might be disabled on it’s own if you set the threshold in this:

Or this:

1 Like

I actually was using the AddChild Method, but it always just clamps it between 0 and 1. I’ve worked around it by just plugging my inputs into an inverse lerp function. Still, if you don’t want evenly spaced blend tree elements, you seem to be SOL.

that sounds a lot like it’s held as a normalised value of some sort

*no idea about blendtrees :smile:

1 Like

Yes BlendTrees can automate the thresholds^ Hmm I’m glad you found a workaround, but there might be another option that’s a little more advanced.
If you set the BlendTree type:

To Direct:

You can do more exact blending, with no “automate thresholds” option, at least from what I can see in Mecanim.

1 Like

Thanks; will look into this!

1 Like