1234567891011121314151617181920212223242526272829303132333435363738 |
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- namespace ShadowStudio.Model
- {
- /// <summary>
- /// 美术资源的展示
- /// </summary>
- public interface ArtPlay
- {
- /// <summary>
- /// 添加到容器中,模型,预制体,图片等加入到容器中展示
- /// </summary>
- /// <param name="obj"></param>
- void AddToNode(UnityEngine.Object obj);
- /// <summary>
- /// 是否需要加载,有些资源无需加载,例如视频和UnityBase
- /// </summary>
- /// <returns></returns>
- bool IsNeedLoad();
- /// <summary>
- /// 是否需要实例化,图片无需实例化,加载可用
- /// </summary>
- /// <returns></returns>
- bool IsNeedInstance();
- /// <summary>
- /// 创建容器
- /// </summary>
- /// <returns></returns>
- ArtContainer CreateContainer();
- /// <summary>
- /// 初始化
- /// </summary>
- /// <param name="info"></param>
- void SetData(ArtInfo info,string containerName="");
- }
- }
|