SetChannels(params string[])
Replaces the channel set with channels that have the given names.
Read time 1 minuteLast updated a day ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
SetChannels(string[])
public void SetChannels(params string[] names)
Parameters
Names of the channels, in order. If is , the set becomes empty.
namesnullRemarks
All channel values reset to 0.
When the animation system binds a curve, it finds the channel by name and then accesses the channel by its position in the set, like blend shape curves. Curves that are already bound don't follow changes to the set. After you change the set, rebind the curves so that they find their channels by name again, for example with Animator.Rebind.
Throws an if a name is or appears more than once, or if there are more than 16384 names.
ArgumentExceptionnull