当前位置:网站首页>【Unity编译器扩展之进度条】
【Unity编译器扩展之进度条】
2022-08-05 00:02:00 【的成长之路】
unity系统样式的进度条
直接看代码,简单
void CreatProgressBar(){
EditorApplication.update = ProgressBar;
}
static float maxValue;
static float presentValue;
public static void ProgressBar()
{
bool isCancel = EditorUtility.DisplayCancelableProgressBar("ProgressBar", "AAA", presentValue/ maxValue);
if (isCancel || presentValue >= maxValue)
{
EditorUtility.ClearProgressBar();
EditorApplication.update = null;
}
边栏推荐
- Xiaohei's leetcode journey: 95. Longest substring with at least K repeating characters
- 中日颜色风格
- DNS常见资源记录类型详解
- 【云原生--Kubernetes】Pod控制器
- 4-《PyTorch深度学习实践》-反向传播
- 3. Actual combat---crawl the result page corresponding to Baidu's specified entry (a simple page collector)
- 基于Appian低代码平台开发一个SpaceX网站
- 招标公告 | 海纳百创公众号运维项目
- Laravel 实现redis分布式锁
- Handwritten Distributed Configuration Center (1)
猜你喜欢
没有这些「伪需求」,产品经理的 KPI 怎么完成?
游戏3D建模入门,有哪些建模软件可以选择?
Day118.尚医通:订单列表、详情、支付
Ab3d.PowerToys and Ab3d.DXEngine Crack
Privacy Computing Overview
Mathematical Principles of Matrix
SQL关联表更新
【Valentine's Day special effects】--Canvas realizes full screen love
Bidding Announcement | Operation and Maintenance Project of Haina Baichuang Official Account
Couple Holding Hands [Greedy & Abstract]
随机推荐
NebulaGraph v3.2.0 Release Note,对查询最短路径的性能等多处优化
SQL关联表更新
typeScript - Partially apply a function
Flask框架 根据源码分析可扩展点
IDEA 文件编码修改
#yyds dry goods inventory #Switching equipment serious packet loss troubleshooting
Develop a SpaceX website based on the Appian low-code platform
what?测试/开发程序员要被淘汰了?年龄40被砍到了32?一瞬间,有点缓不过神来......
情人节---快来学习一下程序员的专属浪漫吧
招标公告 | 海纳百创公众号运维项目
KT6368A Bluetooth certification problem_FCC and BQB_CE_KC certification or other instructions
KT148A语音芯片ic工作原理以及芯片的内部架构描述
【Valentine's Day special effects】--Canvas realizes full screen love
.net (C#) get year month day between two dates
一、爬虫基本概念
What is next-generation modeling (with learning materials)
Vscode连接远程服务器(一套配置成功)
在线中文姓名生成工具推荐
MAUI Blazor 权限经验分享 (定位,使用相机)
【数据挖掘概论】数据挖掘的简单描述