- Home /
Question by
CAS_Kicks · May 11, 2016 at 07:30 PM ·
scripting problemmecanimanimator controller
How can I modify all fields of a Child Motion of a Blend Tree through Script?
When I create child motions for Mecanim blendTrees blendTree.AddChild() I only have access to the motion and threshold. If I try blendTree.children[] it seems to only be a copy? So... blendTree.children[0].timeScale = 2f; doesn't work. Is it possible to get access to blend tree children through script and modify other fields? Thanks!
Comment
Answer by joasus12345 · Apr 03, 2020 at 07:45 AM
Same issue here Im trying to edit the threshold through an editor script Does blendTree.AddChild() work? @CAS_Kicks Did you get it working?