当前位置:网站首页>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
边栏推荐
- 腾讯T2大牛亲自讲解,跳槽薪资翻倍
- Problems encountered in using RT thread component fish
- 数字三角形模型 AcWing 1018. 最低通行费
- Is it difficult for small and micro enterprises to make accounts? Smart accounting gadget quick to use
- 广州首个数据安全峰会将在白云区开幕
- Wechat applet common collection
- Node. Js: express + MySQL realizes registration, login and identity authentication
- Monthly report of speech synthesis (TTS) and speech recognition (ASR) papers in June 2022
- Notes on beagleboneblack
- Oceanbase Community Edition OBD mode deployment mode stand-alone installation
猜你喜欢
PowerPivot - DAX (first time)
信息系统项目管理师---第八章 项目质量管理
Vscode debug run fluent message: there is no extension for debugging yaml. Should we find yaml extensions in the market?
rt-thread i2c 使用教程
Tencent Android interview must ask, 10 years of Android development experience
系统与应用监控的思路和方法
Special topic of rotor position estimation of permanent magnet synchronous motor -- fundamental wave model and rotor position angle
腾讯字节阿里小米京东大厂Offer拿到手软,老师讲的真棒
A5000 vgpu display mode switching
【GET-4】
随机推荐
数字三角形模型 AcWing 1018. 最低通行费
Tencent T3 teaches you hand in hand. It's really delicious
PowerPivot - DAX (first time)
腾讯架构师首发,2022Android面试笔试总结
Tencent T3 Daniel will teach you hand-in-hand, the internal information of the factory
范式的数据库具体解释
Logstash expressway entrance
String length limit?
5. Nano - Net in wireless body: Top 10 "is it possible?" Questions
HDU 1026 Ignatius and the Princess I 迷宫范围内的搜索剪枝问题
Linear distance between two points of cesium
Tips for web development: skillfully use ThreadLocal to avoid layer by layer value transmission
棋盘左上角到右下角方案数(2)
Digital triangle model acwing 1018 Minimum toll
Cesium Click to draw a circle (dynamically draw a circle)
JS get browser system language
Tencent cloud database public cloud market ranks top 2!
Finally, there is no need to change a line of code! Shardingsphere native driver comes out
Method keywords deprecated, externalprocname, final, forcegenerate
Notes on beagleboneblack