allow a way to force non-local parameter driving (e.g. for randomize)
This commit is contained in:
@@ -161,10 +161,10 @@ namespace AnimatorAsCode.V0.Extensions.VRChat
|
||||
return node;
|
||||
}
|
||||
|
||||
public static TNode DrivingLocally<TNode>(this TNode node) where TNode : AacAnimatorNode<TNode>
|
||||
public static TNode DrivingLocally<TNode>(this TNode node, bool wantLocal = true) where TNode : AacAnimatorNode<TNode>
|
||||
{
|
||||
var driver = node.EnsureBehaviour<VRCAvatarParameterDriver>();
|
||||
driver.localOnly = true;
|
||||
driver.localOnly = wantLocal;
|
||||
return node;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user