Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

2D IK solver stops influencing sprite. Help

Discussion in 'Animation' started by flekoun, May 30, 2020.

  1. flekoun

    flekoun

    Joined:
    Jul 13, 2010
    Posts:
    43
    Hello,
    I have a problem with 2D Limb Solver. I made an animation with it and it works fine. In editor when I am running animations it works without issues. However when I run the game (in editor or build) than SOMETIMES the bone which is attached to IK solver target stops influencing sprite which it should control.

    Here is how it looks when it works properly
    IMG_0192_final.gif

    and here is when it does not work. Notice how the bone is correctly following the IK target but the sprite is ignoring the bone!

    IMG_0188_final.gif

    Anyone has any idea why is this happening? The most frustrating thing is that on some instances of a same prefab it is working correctly and on some it wont. Then it stops working and starts again......very annoying and I am not sure what is going on here.
     
  2. flekoun

    flekoun

    Joined:
    Jul 13, 2010
    Posts:
    43
    looping GIF
    ezgif-3-7b3ff1c91c72.gif
     
  3. flekoun

    flekoun

    Joined:
    Jul 13, 2010
    Posts:
    43
    Just to clarify. It is possible to just copy&paste same prefab multiple times and at some of the instances it is ok but others have problems described above. No changes. Just "CTRL+D" to duplicate them and they are not behaving same!
     
  4. flekoun

    flekoun

    Joined:
    Jul 13, 2010
    Posts:
    43
    I just find out that if you enable/disable the defective sprite while the game is running it gets fixed.... But this is not the solution, only some strange workaround...
     
unityunity