public static GetPropertyPreviewFilled ( int previewWidth, int previewHeight, bool useCurveRanges, |
||
previewWidth | int | |
previewHeight | int | |
useCurveRanges | bool | |
curveRanges | ||
property | UnityEditor.SerializedProperty | |
color | Color | |
topFillColor | Color | |
bottomFillColor | Color | |
Результат |
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)); }
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); }
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)); }