public static GetFloatValue ( |
||
root | ||
binding | ||
data | float | |
리턴 | bool |
public static bool GetFloatValue(GameObject root, EditorCurveBinding binding, out float data)
{
return INTERNAL_CALL_GetFloatValue(root, ref binding, out data);
}
AnimationUtility::GetFloatValue ( |
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); }