public ImageSpec( SpriteName?sourceImage = null, Color?color = null, MaterialName?material = null, bool isRaycastTarget = true, IImageType imageType = null ) { SourceImage = sourceImage; Color = color.GetValueOrDefault(Color.white); Material = material; IsRaycastTarget = isRaycastTarget; ImageType = imageType ?? new SimpleImageType(); }
/// <summary>Static getter for Image</summary> public static IPublishedContent GetImage(IImageType that) { return(that.GetPropertyValue <IPublishedContent>("image")); }