TextWithImageListItem.cs 597 B

123456789101112131415161718192021222324252627
  1. using Best.HTTP.Examples.Helpers;
  2. using UnityEngine;
  3. using UnityEngine.UI;
  4. namespace Best.HTTP.Examples
  5. {
  6. class TextWithImageListItem : MultiTextListItem
  7. {
  8. #pragma warning disable 0649
  9. [SerializeField]
  10. protected RawImage _image;
  11. #pragma warning restore
  12. public new TextWithImageListItem SetStatusText(string text)
  13. {
  14. this._statusText.text = text;
  15. return this;
  16. }
  17. public TextWithImageListItem SetImage(Texture2D texture)
  18. {
  19. this._image.texture = texture;
  20. return this;
  21. }
  22. }
  23. }