GetPropertyPreviewFilled() public static method

public static GetPropertyPreviewFilled ( int previewWidth, int previewHeight, bool useCurveRanges, Rect curveRanges, UnityEditor.SerializedProperty property, Color color, Color topFillColor, Color bottomFillColor ) : Texture2D
previewWidth int
previewHeight int
useCurveRanges bool
curveRanges UnityEngine.Rect
property UnityEditor.SerializedProperty
color Color
topFillColor Color
bottomFillColor Color
return UnityEngine.Texture2D
コード例 #1
0
 public static Texture2D GetPreview(int previewWidth, int previewHeight, SerializedProperty property, SerializedProperty property2, Color color, Color topFillColor, Color bottomFillColor, Rect curveRanges)
 {
     if (property2 == null)
     {
         return(AnimationCurvePreviewCache.GetPropertyPreviewFilled(previewWidth, previewHeight, true, curveRanges, property, color, topFillColor, bottomFillColor));
     }
     return(AnimationCurvePreviewCache.GetPropertyPreviewRegionFilled(previewWidth, previewHeight, true, curveRanges, property, property2, color, topFillColor, bottomFillColor));
 }
コード例 #2
0
        public static Texture2D GetPreview(int previewWidth, int previewHeight, SerializedProperty property, SerializedProperty property2, Color color, Color topFillColor, Color bottomFillColor)
        {
            Texture2D result;

            if (property2 == null)
            {
                result = AnimationCurvePreviewCache.GetPropertyPreviewFilled(previewWidth, previewHeight, false, default(Rect), property, color, topFillColor, bottomFillColor);
            }
            else
            {
                result = AnimationCurvePreviewCache.GetPropertyPreviewRegionFilled(previewWidth, previewHeight, false, default(Rect), property, property2, color, topFillColor, bottomFillColor);
            }
            return(result);
        }
コード例 #3
0
 public static Texture2D GetPreview(int previewWidth, int previewHeight, SerializedProperty property, Color color, Color topFillColor, Color bottomFillColor)
 {
     return(AnimationCurvePreviewCache.GetPropertyPreviewFilled(previewWidth, previewHeight, false, default(Rect), property, color, topFillColor, bottomFillColor));
 }