Search Unity

Assign RigEffector in Script

Discussion in 'Animation Rigging' started by nocanwin, Jun 23, 2020.

  1. nocanwin

    nocanwin

    Joined:
    May 7, 2009
    Posts:
    167
    I'm setting up a lot of characters to use AR and I'm making an editor script to generate some general purpose rigs. How do I go about setting up a RigEffector for targets I generate? I started to dig into it a little, but didn't see it anything obvious.
     
  2. simonbz

    simonbz

    Unity Technologies

    Joined:
    Sep 28, 2015
    Posts:
    203
    Hi,

    You can use the following functions to manage RigEffectors in a RigBuilder hierarchy:
    Code (CSharp):
    1. RigBuilder.AddEffector(Transform transform, RigEffectorData.Style);
    2. RigBuilder.RemoveEffector(Transform transform);
    3. bool RigBulder.ContainsEffector(Transform transform);
     
unityunity