Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. 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