Search Unity

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

Discussion in 'Scripting' started by squared55, Jul 6, 2015.

  1. squared55

    squared55

    Joined:
    Aug 28, 2012
    Posts:
    1,818
    Question is title. Can't find anything in the documentation.
     
  2. SomeGuy22

    SomeGuy22

    Joined:
    Jun 3, 2011
    Posts:
    722
    squared55 likes this.
  3. squared55

    squared55

    Joined:
    Aug 28, 2012
    Posts:
    1,818
    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.
     
  4. LeftyRighty

    LeftyRighty

    Joined:
    Nov 2, 2012
    Posts:
    5,148
    that sounds a lot like it's held as a normalised value of some sort

    *no idea about blendtrees :D
     
    squared55 likes this.
  5. SomeGuy22

    SomeGuy22

    Joined:
    Jun 3, 2011
    Posts:
    722
    squared55 likes this.
  6. squared55

    squared55

    Joined:
    Aug 28, 2012
    Posts:
    1,818
    Thanks; will look into this!
     
    SomeGuy22 likes this.