public IImageComponent SetImage(ImageComponent source) { if (source.GetImageSource() != null) { this.SetImage(source.GetImageSource().sprite); } if (source.GetRawImageSource() != null) { this.SetImage(source.GetRawImageSource().texture); } return(this); }
public void SetImage(ImageComponent source) { if (source.GetImageSource() != null) this.SetImage(source.GetImageSource().sprite); if (source.GetRawImageSource() != null) this.SetImage(source.GetRawImageSource().texture); }
public IImageComponent SetImage(ImageComponent source) { if (source.GetImageSource() != null) this.SetImage(source.GetImageSource().sprite); if (source.GetRawImageSource() != null) this.SetImage(source.GetRawImageSource().texture); return this; }