当前位置:网站首页>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
边栏推荐
- Deep learning classification network -- zfnet
- New generation garbage collector ZGC
- Cesium 点击绘制圆形(动态绘制圆形)
- 腾讯T3手把手教你,真的太香了
- AsyncHandler
- Special topic of rotor position estimation of permanent magnet synchronous motor -- fundamental wave model and rotor position angle
- 【GET-4】
- Poj1149 pigs [maximum flow]
- 22-07-05 upload of qiniu cloud storage pictures and user avatars
- 棋盘左上角到右下角方案数(2)
猜你喜欢

【GET-4】

2022年6月语音合成(TTS)和语音识别(ASR)论文月报

Notes on beagleboneblack

HMS core machine learning service creates a new "sound" state of simultaneous interpreting translation, and AI makes international exchanges smoother

Redisson bug analysis

(3) Web security | penetration testing | basic knowledge of network security construction, IIS website construction, EXE backdoor generation tool quasar, basic use of

rt-thread i2c 使用教程

It's enough to read this article to analyze the principle in depth

Pay attention to the partners on the recruitment website of fishing! The monitoring system may have set you as "high risk of leaving"

【GET-4】
随机推荐
A5000 vGPU显示模式切换
持续测试(CT)实战经验分享
Anaconda安裝後Jupyter launch 沒反應&網頁打開運行沒執行
String length limit?
A5000 vgpu display mode switching
BeagleBoneBlack 上手记
mod_ WSGI + pymssql path SQL server seat
Le lancement du jupyter ne répond pas après l'installation d'Anaconda
微信小程序常用集合
Enumeration gets values based on parameters
5. 无线体内纳米网:十大“可行吗?”问题
beegfs高可用模式探讨
夏志刚介绍
Pay attention to the partners on the recruitment website of fishing! The monitoring system may have set you as "high risk of leaving"
JS get browser system language
腾讯T3大牛手把手教你,大厂内部资料
Synchronization of data create trigger synchronization table for each site
Technology sharing | packet capturing analysis TCP protocol
Period compression filter
Groovy基础语法整理