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

Resolved Would love the ability to modify the BoneRenderer transform array through code..

Discussion in 'Animation Rigging' started by tonycoculuzzi, Aug 30, 2021.

  1. tonycoculuzzi

    tonycoculuzzi

    Joined:
    Jun 2, 2011
    Posts:
    301
    Title says it all.

    As it stands, we can't set or change the Bones array data through code unless we use reflection, which isn't great.

    Even just a SetBoneTransforms(Transform[]) method would be nice.

    EDIT:
    My bad! After digging into the package code, the
    transforms
    property allows for this. I missed this while viewing the BoneRenderer code due to the multiple Transform arrays.

    The docs for this are out of date.
     
    Last edited: Aug 30, 2021