UnityEditor.Graphs.ParameterControllerView.CreateElement C# (CSharp) Method

CreateElement() private method

private CreateElement ( UnityEngine parameter ) : Element
parameter UnityEngine
return Element
        private Element CreateElement(UnityEngine.AnimatorControllerParameter parameter)
        {
            switch (parameter.type)
            {
                case UnityEngine.AnimatorControllerParameterType.Float:
                    return new FloatElement(parameter, this);

                case UnityEngine.AnimatorControllerParameterType.Int:
                    return new IntElement(parameter, this);

                case UnityEngine.AnimatorControllerParameterType.Bool:
                    return new BoolElement(parameter, this);

                case UnityEngine.AnimatorControllerParameterType.Trigger:
                    return new TriggerElement(parameter, this);
            }
            return null;
        }