当前位置:网站首页>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
边栏推荐
- Anaconda安装后Jupyter launch 没反应&网页打开运行没执行
- 01 基础入门-概念名词
- An East SMS login resurrection installation and deployment tutorial
- (3) Web security | penetration testing | basic knowledge of network security construction, IIS website construction, EXE backdoor generation tool quasar, basic use of
- POJ1149 PIGS 【最大流量】
- 5. 無線體內納米網:十大“可行嗎?”問題
- RT thread I2C tutorial
- Vscode debug run fluent message: there is no extension for debugging yaml. Should we find yaml extensions in the market?
- Database specific interpretation of paradigm
- 爬虫(14) - Scrapy-Redis分布式爬虫(1) | 详解
猜你喜欢

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

Tencent T3 Daniel will teach you hand-in-hand, the internal information of the factory

Monthly report of speech synthesis (TTS) and speech recognition (ASR) papers in June 2022

Notes on beagleboneblack

An East SMS login resurrection installation and deployment tutorial

5. Wireless in vivo nano network: top ten "feasible?" problem

5. 无线体内纳米网:十大“可行吗?”问题

redisson bug分析

In simple terms, interview surprise Edition

Tencent Android interview must ask, 10 years of Android development experience
随机推荐
Technology sharing | packet capturing analysis TCP protocol
【云小课】EI第47课 MRS离线数据分析-通过Flink作业处理OBS数据
POJ 3207 Ikki's Story IV – Panda's Trick (2-SAT)
[cloud lesson] EI lesson 47 Mrs offline data analysis - processing OBS data through Flink
Configuration and simple usage of the EXE backdoor generation tool quasar
5. 無線體內納米網:十大“可行嗎?”問題
Alibaba data source Druid visual monitoring configuration
Introduction to enterprise lean management system
Introduction of Xia Zhigang
Poj3617 best cow line
[network planning] Chapter 3 data link layer (3) channel division medium access control
技术分享 | 抓包分析 TCP 协议
A5000 vGPU显示模式切换
Tencent architects first, 2022 Android interview written examination summary
语音识别(ASR)论文优选:全球最大的中英混合开源数据TALCS: An Open-Source Mandarin-English Code-Switching Corpus and a Speech
枚举根据参数获取值
Tencent T2 Daniel explained in person and doubled his job hopping salary
golang的超时处理使用技巧
Vscode debug run fluent message: there is no extension for debugging yaml. Should we find yaml extensions in the market?
Enumeration gets values based on parameters