- 博客(4)
- 资源 (2)
- 收藏
- 关注
原创 unity随机获取背景图片
获取图片 通常我们在unity中获取图片的方式是建立一个public数组,通过拖拽的方式来给数组赋值,这种方法容易在使用新unity版本运行时丢失图片。只适合初学者使用,今天我们来介绍一种新的方法。 步骤 创建一个新脚本让它继承自ScriptableObject类; 添加一个标题[CreateAssetMenu(menuName =“CreatMangerVarsContainer”)]用于创建一个带有Asset后缀的文件 [CreateAssetMenu(menuName ="CreatMangerVar
2020-12-07 11:55:12
886
2
原创 unity通过Get请求获取网页图片
#源码 using System.Collections; using System.Collections.Generic; using UnityEngine; public class picture : MonoBehaviour { private string url = "https://tse1-mm.cn.bing.net/th/id/OIP.XEW_hj3QNUAloOBWVW3BAQHaQD?w=161&h=350&c=7&o=5&dpr=1.
2020-12-06 11:41:04
687
原创 unity高度解耦合,通过广播实现
#高度解耦合源码 EventCenter using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class EventCenter { private static Dictionary<EventType, Delegate> m_EventTable = new Dictionary<EventType, Delegate>(
2020-12-06 11:20:25
223
原创 UNITY通过post传输json数据
@UNITY通过post传输json数据 代码 using LitJson; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Networking; public class HTTPclient : MonoBehaviour { #region 属性 public bool IsBusy=false;//用于检测是否重复发送 #endregion #reg
2020-11-29 19:07:04
2843
2
MATLAB绿幕抠图课设太原工业学院
2020-12-09
操作系统实验报告太原工业学院
2020-12-09
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅