Forum rules - please read before posting.

Newly created character/hold object doesnt work, old nodes works okay

edited November 2024 in Technical Q&A

Hi, I have really weird one.
I was trying to use character/hold object/move hand with IK, and no matter what I do it only moves left hand, even tho I have node for both hands.

So I checked some old scene where I used it, and after lot of trial and error testing I found out, that:

  • Old nodes works correctly
  • If I copy these old nodes - they still works correctly

  • but if I create new nodes from scratch, it only works for left hand, it will move left hand with node setup for left hand, and then it will move left hand again for node set up for right hand.

Considering it works with previously created nodes, Im pretty sure character setup is correct and there is some problem with my newly created nodes. I have no idea what to do and will be gratefull for any tips

https://imgur.com/a/palWp9U

Comments

  • first notticed this in Version 1.81.5, I tried 1.82.1 but didnt help. My unity is 2022.3.29f1, I tried updating 2022.3.53f1 but did not help either

  • edited November 2024

    I managed to recreate it in fresh project with just AC and some sample mecanim humanoid and still broken - maybe something that happened with Attachment points changes in 1.81?

  • Thanks for the details. I'll attempt a recreation.

    Do the old (working) Actions work on your tested new (not working) character?

  • Hi Chris, thanks - Yes, any character is working correctly with old actions, and newly created actions olny move its left hand

  • Recreated. To fix, open up the ActionCharHold script and go to the RunSelf function.

    Replace the following lines:

    switch (hand)
    case Hand.Left:
    case Hand.Right:
    

    With these:

    switch (attachmentPointID)
    case 0:
    case 1:
    
  • Awesome thanks a lot!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.