Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Edit transform of rig through script

Discussion in 'Animation' started by Truls_, Jan 15, 2023.

  1. Truls_

    Truls_

    Joined:
    Dec 4, 2016
    Posts:
    104
    I have a rigged character with an idle animation where everything works just fine, but I want one part of the character to be "animated" through a script. The part is a separate gameobject and I just want to edit the rotation of it while it also follows the bones in the rig. Is this possible in any way? Because trying to edit the rotation right off the bat doesn't seem to work as it is stuck to the bones
     
  2. Truls_

    Truls_

    Joined:
    Dec 4, 2016
    Posts:
    104
    To be more specific, the character has a propeller hat, and I want the hat to follow his head, but I want the propeller to rotate as well, and I'm doing that through script