当前位置:网站首页>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
边栏推荐
- B-杰哥的树(状压树形dp)
- 颜色(color)转换为三刺激值(r/g/b)(干股)
- 【云小课】EI第47课 MRS离线数据分析-通过Flink作业处理OBS数据
- Classic 100 questions of algorithm interview, the latest career planning of Android programmers
- Logstash expressway entrance
- Notes on beagleboneblack
- 转让malloc()该功能后,发生了什么事内核?附malloc()和free()实现源
- String length limit?
- Anaconda安裝後Jupyter launch 沒反應&網頁打開運行沒執行
- 5. Nano - Net in wireless body: Top 10 "is it possible?" Questions
猜你喜欢
Cesium Click to draw a circle (dynamically draw a circle)
Example of shutter text component
【Yann LeCun点赞B站UP主使用Minecraft制作的红石神经网络】
Notes on beagleboneblack
New generation garbage collector ZGC
A5000 vGPU显示模式切换
Tencent Android development interview, basic knowledge of Android Development
Monthly report of speech synthesis (TTS) and speech recognition (ASR) papers in June 2022
腾讯T2大牛亲自讲解,跳槽薪资翻倍
01 基础入门-概念名词
随机推荐
01 基础入门-概念名词
golang的超时处理使用技巧
Standardized QCI characteristics
广州首个数据安全峰会将在白云区开幕
【Yann LeCun点赞B站UP主使用Minecraft制作的红石神经网络】
Tencent Android interview must ask, 10 years of Android development experience
In simple terms, interview surprise Edition
Deep learning classification network -- zfnet
Tencent T3 teaches you hand in hand. It's really delicious
BUUCTF---Reverse---easyre
PowerPivot - DAX (first time)
Anaconda安裝後Jupyter launch 沒反應&網頁打開運行沒執行
Anaconda安装后Jupyter launch 没反应&网页打开运行没执行
leetcode先刷_Maximum Subarray
(3) Web security | penetration testing | basic knowledge of network security construction, IIS website construction, EXE backdoor generation tool quasar, basic use of
How to handle the timeout of golang
Crawler (14) - scrape redis distributed crawler (1) | detailed explanation
AsyncHandler
转让malloc()该功能后,发生了什么事内核?附malloc()和free()实现源
句号压缩过滤器