Texture大图控件
public class L5 : MonoBehaviour
{
public UITexture tex;
// Start is called before the first frame update
void Start()
{
//Sprite只能显示图集中图片,一般用于显示中小图片
//如果使用大尺寸图片就没有必要制作图集
//一般使用Texture控件进行大图片显示
//代码设置
//加载图片
Texture texture = Resources.Load<Texture>("");
//设置图片
tex.mainTexture = texture;
}
}

浙公网安备 33010602011771号