private void DrawBone(FireFxTreeDebuger d, Insp_TextInput insp) { if (d == null || insp == null || animTarget == AnimatorTarget.Host) { return; } EditorGUI.BeginChangeCheck(); string st = BoneGUI.BoneField(d.hero, insp.label, bone); if (EditorGUI.EndChangeCheck()) { insp.SetValueString(st); } }
private void DrawAnim(FireFxTreeDebuger d, Insp_TextInput insp) { if (d == null || insp == null || actionType != AnimatorActionType.Play) { return; } if (animTarget != AnimatorTarget.Host) { anim = EditorGUILayout.TextField(insp.label, anim); return; } EditorGUI.BeginChangeCheck(); string st = AnimatorGUI.StateField(d.hero, insp.label, anim); if (EditorGUI.EndChangeCheck()) { insp.SetValueString(st); } }
private void DrawParameter(FireFxTreeDebuger d, Insp_TextInput insp) { if (d == null || insp == null || actionType == AnimatorActionType.Play) { return; } if (animTarget != AnimatorTarget.Host) { paramName = EditorGUILayout.TextField(insp.label, paramName); return; } EditorGUI.BeginChangeCheck(); string st = AnimatorGUI.ParameterField(d.hero, insp.label, paramName); if (EditorGUI.EndChangeCheck()) { insp.SetValueString(st); AnimatorControllerParameter p = EditAnimatorUtils.GetAnimParameter(d.hero, st); if (p != null) { paramType = p.type; } } }