public static GetPropertyPreviewRegion ( int previewWidth, int previewHeight, bool useCurveRanges, |
||
previewWidth | int | |
previewHeight | int | |
useCurveRanges | bool | |
curveRanges | ||
property | UnityEditor.SerializedProperty | |
property2 | UnityEditor.SerializedProperty | |
color | Color | |
return |
public static Texture2D GetPreview(int previewWidth, int previewHeight, SerializedProperty property, SerializedProperty property2, Color color) { if (property2 == null) { return(AnimationCurvePreviewCache.GetPropertyPreview(previewWidth, previewHeight, false, default(Rect), property, color)); } return(AnimationCurvePreviewCache.GetPropertyPreviewRegion(previewWidth, previewHeight, false, default(Rect), property, property2, color)); }
public static Texture2D GetPreview(int previewWidth, int previewHeight, SerializedProperty property, SerializedProperty property2, Color color, Rect curveRanges) { if (property2 == null) { return(AnimationCurvePreviewCache.GetPropertyPreview(previewWidth, previewHeight, true, curveRanges, property, color)); } return(AnimationCurvePreviewCache.GetPropertyPreviewRegion(previewWidth, previewHeight, true, curveRanges, property, property2, color)); }