コード例 #1
0
        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);
        }
コード例 #2
0
			public void SetImage(ImageComponent source) {
				
				if (source.GetImageSource() != null) this.SetImage(source.GetImageSource().sprite);
				if (source.GetRawImageSource() != null) this.SetImage(source.GetRawImageSource().texture);
				
			}
コード例 #3
0
			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;
				
			}