UnityEditor.Graphs.ParameterControllerView.CreateElement C# (CSharp) 메소드

CreateElement() 개인적인 메소드

private CreateElement ( UnityEngine parameter ) : Element
parameter UnityEngine
리턴 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;
        }