当前位置:网站首页>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
边栏推荐
- 永磁同步电机转子位置估算专题 —— 基波模型类位置估算概要
- 腾讯T3大牛手把手教你,大厂内部资料
- [play with Linux] [docker] MySQL installation and configuration
- Case ① | host security construction: best practice of 3 levels and 11 capabilities
- Color is converted to tristimulus value (r/g/b) (dry stock)
- Initial experience of addresssanitizer Technology
- An East SMS login resurrection installation and deployment tutorial
- Tencent cloud database public cloud market ranks top 2!
- Alibaba数据源Druid可视化监控配置
- BUUCTF---Reverse---easyre
猜你喜欢
HMS core machine learning service creates a new "sound" state of simultaneous interpreting translation, and AI makes international exchanges smoother
Standardized QCI characteristics
腾讯字节阿里小米京东大厂Offer拿到手软,老师讲的真棒
Tencent T3 teaches you hand in hand. It's really delicious
beegfs高可用模式探讨
Anaconda安装后Jupyter launch 没反应&网页打开运行没执行
腾讯T3手把手教你,真的太香了
Introduction to enterprise lean management system
Tencent architects first, 2022 Android interview written examination summary
[cloud native and 5g] micro services support 5g core network
随机推荐
leetcode先刷_Maximum Subarray
BeagleBoneBlack 上手记
腾讯安卓开发面试,android开发的基础知识
永磁同步电机转子位置估算专题 —— 基波模型与转子位置角
Groovy基础语法整理
新一代垃圾回收器—ZGC
Poj1149 pigs [maximum flow]
AddressSanitizer 技术初体验
Wonderful coding [hexadecimal conversion]
永磁同步电机转子位置估算专题 —— 基波模型类位置估算概要
【云小课】EI第47课 MRS离线数据分析-通过Flink作业处理OBS数据
Special topic of rotor position estimation of permanent magnet synchronous motor -- fundamental wave model and rotor position angle
8086 instruction code summary (table)
数字三角形模型 AcWing 1018. 最低通行费
JVM_常见【面试题】
腾讯云数据库公有云市场稳居TOP 2!
腾讯T3手把手教你,真的太香了
Example of shutter text component
Tencent architects first, 2022 Android interview written examination summary
持续测试(CT)实战经验分享