底层加载资源框架
学习底层加载
我是赵某人
不求甚解,格物致知
展开
-
底层加载资源框架学习(九):生成配置表
全部代码: using System.Runtime.Serialization.Formatters.Binary; using System.Xml.Serialization; using System.IO; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; public class BundleEditor { #region 路径 public原创 2021-07-01 18:27:31 · 172 阅读 · 0 评论 -
底层加载资源框架学习(八):打AB包
代码: using System.IO; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; public class BundleEditor { #region 路径 public static string m_BundleTargetPath=Application.streamingAssetsPath; public static string原创 2021-07-01 17:04:40 · 159 阅读 · 0 评论 -
底层加载资源框架学习(七):设置AB包名字以及清除AB包名
代码 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; public class BundleEditor { #region 路径 public static string ABCONFIGPATH="Assets/Editor/ABConfig.asset"; #endregion /// <summary> /// 存放所有的原创 2021-07-01 16:13:30 · 865 阅读 · 0 评论 -
底层加载资源框架学习(六):打包设置过滤以及单个预制和依赖
代码: using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; public class BundleEditor { #region 路径 public static string ABCONFIGPATH="Asset/Editor/ABConfig.asset"; #endregion /// <summary> /// 存放所有的原创 2021-07-01 15:51:10 · 140 阅读 · 0 评论 -
底层加载资源框架学习(五):打包设置文件夹
代码: using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; public class BundleEditor { #region 路径 public static string ABCONFIGPATH="Asset/Editor/ABConfig.asset"; #endregion /// <summary> /// 存放所有的原创 2021-07-01 15:29:04 · 110 阅读 · 0 评论 -
底层加载资源框架学习(四):自定义打包配置表
代码: using System.Collections; using System.Collections.Generic; using UnityEngine; [CreateAssetMenu(fileName ="ABConfig",menuName ="CreatABConfig",order=0)] public class ABConfig : ScriptableObject { /// <summary> /// 单个文件所在文件夹路径,会遍历这个文件夹下面所有的Pre原创 2021-07-01 14:59:46 · 105 阅读 · 0 评论 -
底层加载资源框架学习(三):Asset序列化
1.使用Asset序列化需要继承ScriptableObject,当继承以后,脚本中的元素不需要添加任何标签 2.创建一个实例并保存为.asset文件。 using System.Collections; using System.Collections.Generic; using UnityEngine; [CreateAssetMenu(fileName ="AssetSerilize",...原创 2020-04-01 16:15:25 · 315 阅读 · 0 评论 -
底层加载资源框架学习(一):XML序列化
1.需要的序列化内容 // <summary> /// 需要序列化的类 /// </summary> [System.Serializable] public class TestSerilize { //序列化的元素 [XmlAttribute("Id")] public int ID { get; set; } [XmlAttribute...原创 2020-03-31 17:19:51 · 162 阅读 · 0 评论 -
底层加载资源框架学习(二):二进制序列化
1.需要序列化的类 using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Xml.Serialization; /// <summary> /// 需要序列化的类 /// </summary> [System.Serializable] pub...原创 2020-04-01 12:34:03 · 174 阅读 · 0 评论