GetPropertyPreview() public static method

public static GetPropertyPreview ( int previewWidth, int previewHeight, bool useCurveRanges, Rect curveRanges, UnityEditor.SerializedProperty property, Color color ) : Texture2D
previewWidth int
previewHeight int
useCurveRanges bool
curveRanges UnityEngine.Rect
property UnityEditor.SerializedProperty
color Color
return UnityEngine.Texture2D
コード例 #1
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));
 }
コード例 #2
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));
 }
コード例 #3
0
 public static Texture2D GetPreview(int previewWidth, int previewHeight, SerializedProperty property, Color color)
 {
     return(AnimationCurvePreviewCache.GetPropertyPreview(previewWidth, previewHeight, false, new Rect(), property, color));
 }