UnityEditor.ModelImporterClipEditor.RootMotionNodeSettings C# (CSharp) Method

RootMotionNodeSettings() private method

private RootMotionNodeSettings ( ) : void
return void
        private void RootMotionNodeSettings()
        {
            if ((this.animationType == ModelImporterAnimationType.Human) || (this.animationType == ModelImporterAnimationType.Generic))
            {
                motionNodeFoldout = EditorGUILayout.Foldout(motionNodeFoldout, styles.MotionSetting);
                if (motionNodeFoldout)
                {
                    EditorGUI.BeginChangeCheck();
                    this.motionNodeIndex = EditorGUILayout.Popup(styles.MotionNode, this.motionNodeIndex, this.m_MotionNodeList, new GUILayoutOption[0]);
                    if (EditorGUI.EndChangeCheck())
                    {
                        if ((this.motionNodeIndex > 0) && (this.motionNodeIndex < this.m_MotionNodeList.Length))
                        {
                            this.m_MotionNodeName.stringValue = this.m_MotionNodeList[this.motionNodeIndex].text;
                        }
                        else
                        {
                            this.m_MotionNodeName.stringValue = string.Empty;
                        }
                    }
                }
            }
        }