当前位置:网站首页>【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;
}
边栏推荐
猜你喜欢

性能测试如何准备测试数据

大师教你3D实时角色制作流程,游戏建模流程分享

【七夕快乐篇】Nacos是如何实现服务注册功能的?

【手撕AHB-APB Bridge】~ AMBA总线 之 AHB

10 个关于 Promise 和 setTimeout 知识的面试题,通过图解一次说透彻

SQL association table update

Bidding Announcement | Operation and Maintenance Project of Haina Baichuang Official Account

三大技巧让你成功入门3D建模,零基础小白必看

3. Actual combat---crawl the result page corresponding to Baidu's specified entry (a simple page collector)

【LeetCode】滑动窗口题解汇总
随机推荐
入门3D游戏建模师知识必备
Ab3d.PowerToys and Ab3d.DXEngine Crack
uniapp sharing function - share to friends group chat circle of friends effect (sorting)
从单体架构迁移到 CQRS 后,我觉得 DDD 并不可怕
2022年华数杯数学建模
招标公告 | 海纳百创公众号运维项目
How to burn the KT148A voice chip into the chip through the serial port and the tools on the computer
3. Actual combat---crawl the result page corresponding to Baidu's specified entry (a simple page collector)
建模师经验分享:模型学习方法
Detailed explanation of common DNS resource record types
【CVA估值训练营】财务建模指南——第一讲
Brainstorm: Complete Backpack
[Cloud Native--Kubernetes] Pod Controller
《MySQL入门很轻松》第2章:MySQL管理工具介绍
美团二面:Redis与MySQL双写一致性如何保证?
The role of @Async annotation and how to implement asynchronous listening mechanism
基于Appian低代码平台开发一个SpaceX网站
Privacy Computing Overview
uniapp 分享功能-分享给朋友群聊朋友圈效果(整理)
性能测试如何准备测试数据