GetPropertyPreviewRegion() public static method

public static GetPropertyPreviewRegion ( int previewWidth, int previewHeight, bool useCurveRanges, Rect curveRanges, UnityEditor.SerializedProperty property, UnityEditor.SerializedProperty property2, Color color ) : Texture2D
previewWidth int
previewHeight int
useCurveRanges bool
curveRanges UnityEngine.Rect
property UnityEditor.SerializedProperty
property2 UnityEditor.SerializedProperty
color Color
return UnityEngine.Texture2D
Ejemplo n.º 1
0
 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));
 }
Ejemplo n.º 2
0
 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));
 }