Search Unity

  1. Get all the Unite Berlin 2018 news on the blog.
    Dismiss Notice
  2. Unity 2018.2 has arrived! Read about it here.
    Dismiss Notice
  3. Improve your Unity skills with a certified instructor in a private, interactive classroom. Learn more.
    Dismiss Notice
  4. ARCore is out of developer preview! Read about it here.
    Dismiss Notice
  5. Magic Leap’s Lumin SDK Technical Preview for Unity lets you get started creating content for Magic Leap One™. Find more information on our blog!
    Dismiss Notice
  6. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

No animations when starting too close to actor

Discussion in 'Animation' started by malkere, Jul 9, 2018.

  1. malkere

    malkere

    Joined:
    Dec 6, 2013
    Posts:
    857
    I have pigs in my game which don't have any attacks so their Animator consist of entry->blendTree and anyState->death (on trigger). So basically the pig is always in the blend tree which is just 1d: Speed, that goes from idle <-> walk <-> run. So there should always be idle, walk, or run, playing, unless the pig is dead which is pretty obvious when it's dead (it's not dead).

    Now I've been working on some new player skills and testing them on pigs, so I've saved right next to a pig so that when I load the game I'm right next to a pig and ready to test my skill changes on him. However the pig doesn't animate. I can see his animator is on, he is on, he is rendering... but he's not animating. If I put about 2m distance between us, he starts animating, and doesn't stop if I get close again. If I save about 2m from him and reload, he animates as normal... stand next to him and reload again.. not animating again...

    Does this make sense in any way? I'm using cull animations completely, but the pig is quite obviously visible. What else can I look into to figure this out?