public CreateBlendTreeChild ( |
||
position | The position of the child. When using 2D blend trees. | |
Résultat |
private void CreateBlendTreeCallback(object obj) { UnityEditor.Animations.BlendTree tree = obj as UnityEditor.Animations.BlendTree; if (tree != null) { UnityEditor.Animations.BlendTree tree2 = tree.CreateBlendTreeChild((float)0f); if ((this.m_Tool != null) && (this.m_Tool.animatorController != null)) { string defaultBlendTreeParameter = this.m_Tool.animatorController.GetDefaultBlendTreeParameter(); tree2.blendParameterY = defaultBlendTreeParameter; tree2.blendParameter = defaultBlendTreeParameter; tree.SetDirectBlendTreeParameter(tree.children.Length - 1, this.m_Tool.animatorController.GetDefaultBlendTreeParameter()); } else { tree2.blendParameter = tree.blendParameter; tree2.blendParameterY = tree.blendParameterY; } } }
private void CreateBlendTreeCallback(object obj) { UnityEditor.Animations.BlendTree blendTree = obj as UnityEditor.Animations.BlendTree; if (!blendTree) { return; } UnityEditor.Animations.BlendTree blendTree2 = blendTree.CreateBlendTreeChild(0f); if (this.m_Tool && this.m_Tool.animatorController != null) { UnityEditor.Animations.BlendTree arg_5F_0 = blendTree2; string defaultBlendTreeParameter = this.m_Tool.animatorController.GetDefaultBlendTreeParameter(); blendTree2.blendParameterY = defaultBlendTreeParameter; arg_5F_0.blendParameter = defaultBlendTreeParameter; blendTree.SetDirectBlendTreeParameter(blendTree.children.Length - 1, this.m_Tool.animatorController.GetDefaultBlendTreeParameter()); } else { blendTree2.blendParameter = blendTree.blendParameter; blendTree2.blendParameterY = blendTree.blendParameterY; } }