UnityEditor.AnimationUtility.GetFloatValue C# (CSharp) Method

GetFloatValue() public static method

public static GetFloatValue ( GameObject root, EditorCurveBinding binding, float &data ) : bool
root UnityEngine.GameObject
binding EditorCurveBinding
data float
return bool
        public static bool GetFloatValue(GameObject root, EditorCurveBinding binding, out float data)
        {
            return INTERNAL_CALL_GetFloatValue(root, ref binding, out data);
        }

Same methods

AnimationUtility::GetFloatValue ( GameObject root, string relativePath, Type type, string propertyName, float &data ) : bool

Usage Example

示例#1
0
        public float GetSampledOrCurveValue(float time)
        {
            if (this.animated)
            {
                CurveRenderer curveRenderer = CurveRendererCache.GetCurveRenderer(this.clip, this.m_CurveBinding);
                if (curveRenderer == null)
                {
                    Debug.LogError("The renderer is null!");
                }
                return(curveRenderer.EvaluateCurveSlow(time));
            }
            float result;

            if (!AnimationUtility.GetFloatValue(this.animationSelection.animatedObject, this.m_CurveBinding, out result))
            {
                result = float.PositiveInfinity;
            }
            return(result);
        }
All Usage Examples Of UnityEditor.AnimationUtility::GetFloatValue
AnimationUtility