当前位置:网站首页>Unity makes AB package
Unity makes AB package
2022-07-06 20:13:00 【LiPing122335】
(1) Create what we need asset bundle The name of the resource package , Click any resource , new One asset bundle Name ;
(2) Will you break into asset bundle Resources in the resource bag , Specify the name we just created ;
(3) Expand our editor , Call the editor API function , Come and take us asset bundle Pack it ;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using UnityEditor;
using UnityEngine;
public class TextAB : MonoBehaviour {
[MenuItem("ChaJian/AB")]
public static void Get()
{
string path = Application.streamingAssetsPath;
//
if (!Directory.Exists (path))
{
Directory.CreateDirectory(path);// Create folder
}
BuildPipeline.BuildAssetBundles(path, BuildAssetBundleOptions.None, BuildTarget.StandaloneWindows64);
}
}
// Script Asset Of Editor
边栏推荐
- String length limit?
- Deep learning classification network -- zfnet
- mod_ WSGI + pymssql path SQL server seat
- 【云原生与5G】微服务加持5G核心网
- Notes on beagleboneblack
- 夏志刚介绍
- Initial experience of addresssanitizer Technology
- 5. Wireless in vivo nano network: top ten "feasible?" problem
- 腾讯安卓开发面试,android开发的基础知识
- It's enough to read this article to analyze the principle in depth
猜你喜欢
[play with Linux] [docker] MySQL installation and configuration
(3) Web security | penetration testing | basic knowledge of network security construction, IIS website construction, EXE backdoor generation tool quasar, basic use of
The "white paper on the panorama of the digital economy" has been released with great emphasis on the digitalization of insurance
Speech recognition (ASR) paper selection: talcs: an open source Mandarin English code switching corps and a speech
[network planning] Chapter 3 data link layer (3) channel division medium access control
rt-thread i2c 使用教程
Tencent architects first, 2022 Android interview written examination summary
[cloud native and 5g] micro services support 5g core network
HMS Core 机器学习服务打造同传翻译新“声”态,AI让国际交流更顺畅
深度学习分类网络 -- ZFNet
随机推荐
Enumeration gets values based on parameters
PowerPivot - DAX (first time)
[cloud lesson] EI lesson 47 Mrs offline data analysis - processing OBS data through Flink
系统与应用监控的思路和方法
句号压缩过滤器
Special topic of rotor position estimation of permanent magnet synchronous motor -- Summary of position estimation of fundamental wave model
[Yann Lecun likes the red stone neural network made by minecraft]
枚举根据参数获取值
技术分享 | 抓包分析 TCP 协议
5. Wireless in vivo nano network: top ten "feasible?" problem
beegfs高可用模式探讨
Finally, there is no need to change a line of code! Shardingsphere native driver comes out
Social recruitment interview experience, 2022 latest Android high-frequency selected interview questions sharing
Node. Js: express + MySQL realizes registration, login and identity authentication
Tencent architects first, 2022 Android interview written examination summary
精彩编码 【进制转换】
JVM_常见【面试题】
颜色(color)转换为三刺激值(r/g/b)(干股)
Vscode debug run fluent message: there is no extension for debugging yaml. Should we find yaml extensions in the market?
5. Nano - Net in wireless body: Top 10 "is it possible?" Questions