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

Optimized Game Object & RagDoll

Discussion in 'Animation' started by KnightPista, Sep 22, 2016.

  1. KnightPista

    KnightPista

    Joined:
    May 18, 2015
    Posts:
    40
    Hi,

    simple question: is it possible to manipulate/retrieve Animator transform hierarchy after game object has been optimized (in the Rig mesh options checked Optimize Game Object)?

    The problem is, we have actors that should be optimized by optimizing transform hierarchy. These have also ragdolls attached on them. When the game object is optimized, moving exposed transforms no longer move skinned mesh.

    Documentation says that the hierarchy is moved into Animator. Animator has also property called "hasTransformHierarchy". But there is no getter for that hierarchy.

    Is it possible to get/set transforms after gameobject has been optimized?

    Thanks!
     
  2. Mecanim-Dev

    Mecanim-Dev

    Joined:
    Nov 26, 2012
    Posts:
    1,675
    Exposed Transform are read only which mean that you can read the transform of the exposed object but changing the value won't have any effect.
     
    chadfranklin47 likes this.