ArtPlay.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. namespace ShadowStudio.Model
  6. {
  7. /// <summary>
  8. /// 美术资源的展示
  9. /// </summary>
  10. public interface ArtPlay
  11. {
  12. /// <summary>
  13. /// 添加到容器中,模型,预制体,图片等加入到容器中展示
  14. /// </summary>
  15. /// <param name="obj"></param>
  16. void AddToNode(UnityEngine.Object obj);
  17. /// <summary>
  18. /// 是否需要加载,有些资源无需加载,例如视频和UnityBase
  19. /// </summary>
  20. /// <returns></returns>
  21. bool IsNeedLoad();
  22. /// <summary>
  23. /// 是否需要实例化,图片无需实例化,加载可用
  24. /// </summary>
  25. /// <returns></returns>
  26. bool IsNeedInstance();
  27. /// <summary>
  28. /// 创建容器
  29. /// </summary>
  30. /// <returns></returns>
  31. ArtContainer CreateContainer();
  32. /// <summary>
  33. /// 初始化
  34. /// </summary>
  35. /// <param name="info"></param>
  36. void SetData(ArtInfo info,string containerName="");
  37. }
  38. }