Example #1
0
 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();
 }
Example #2
0
 /// <summary>Static getter for Image</summary>
 public static IPublishedContent GetImage(IImageType that)
 {
     return(that.GetPropertyValue <IPublishedContent>("image"));
 }