Sorry to bother, but I can’t figure out how to change the gizmos of the effectors by script.
I’d like to be able to set the model, the color and size of a certain object, but I’m unsure how to reference them.
Hi,
You can modify your effectors on your Rig
or RigBuilder
components directly. Both components implement IRigEffectorHolder
and provide the following functions:
IEnumerable<RigEffectorData> effectors { get; }
void AddEffector(Transform transform, RigEffectorData.Style style);
void RemoveEffector(Transform transform);
bool ContainsEffector(Transform transform);
Unfortunately, it doesn’t show up in script API documentation because our doc parser skips all UNITY_EDITOR
specific code…
1 Like
Thanks, that’s really useful.