![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
资源加载
unity工具人
林深时见鹿 海蓝时见鲸
展开
-
unity 通过http链接获取图片资源,并给到UI上
通过网络链接加载图片作为image贴图完整代码using System;using System.Collections;using System.IO;using UnityEngine;using UnityEngine.Networking;using UnityEngine.UI;public class LoadTexture : MonoBehaviour{ [Header("图片地址")] [SerializeField] private st转载 2020-05-18 14:59:51 · 3173 阅读 · 0 评论 -
Unity网络请求方式UnityWebRequest
在unity2019中,“WWW"的资源加载方式过时了,新的方法为"UnityWebRequest”使用方法如下:1.加载图片资源using UnityEngine;using UnityEngine.Networking;using System.Collections;public class MyBehaviour : MonoBehaviour{void Start(){StartCoroutine(GetText());}IEnumerator GetText(){转载 2020-05-17 17:21:12 · 12390 阅读 · 0 评论 -
AssetsBundle资源包的打包和加载
如何打Assetsbundle资源包呢这样using UnityEditor;using UnityEngine;public class BuildAssetBundle{ /// <summary> /// 点击后,所有设置了AssetBundle名称的资源会被 分单个打包出来 /// </summary> [MenuItem...原创 2019-11-19 14:10:49 · 566 阅读 · 0 评论