当前位置: 首页 > news >正文

QFramework v1.0 使用指南 更新篇:20240919. 新增 BindableDictionary

增加了三个比较常用的屏幕过渡:FadeIn,FadeOut,FadeInOut。

示例代码如下:

using UnityEngine;namespace QFramework.Example
{public class ScreenTransitionsExample : MonoBehaviour{private void OnGUI(){IMGUIHelper.SetDesignResolution(640,360);if (GUILayout.Button("FadeIn")){ActionKit.ScreenTransition.FadeIn().Start(this);}if (GUILayout.Button("FadeOut")){ActionKit.ScreenTransition.FadeOut().Start(this);}if (GUILayout.Button("FadeInOut")){ActionKit.ScreenTransition.FadeInOut().OnInFinish(() =>{Debug.Log("load scene here");}).Start(this);}if (GUILayout.Button("FadeIn White")){ActionKit.ScreenTransition.FadeIn().Color(Color.white).Start(this);}if (GUILayout.Button("FadeOut Red")){ActionKit.ScreenTransition.FadeOut().Color(Color.red).Start(this);}if (GUILayout.Button("FadeInOut 0.5s in green out blue")){ActionKit.ScreenTransition.FadeInOut().In(fadeIn=>fadeIn.Duration(0.5f).Color(Color.green)).Out(fadeOut=>fadeOut.Duration(0.5f).Color(Color.blue)).Start(this);}}}
}

运行后结果如下:

screen_transition

本文由 《QFramework 教程年会员》赞助,298 元,9 套教程一年内随便看。

http://www.lryc.cn/news/461568.html

相关文章:

  • vue实现文件预览和文件上传、下载、预览——多图、模型、dwg图纸、文档(word、excel、ppt、pdf)
  • 探讨人工智能领域所需学习的高等数学知识及其应用场景,涵盖了微积分、线性代数、概率论等多个数学分支。
  • 详解安卓和IOS的唤起APP的机制,包括第三方平台的唤起方法比如微信
  • 服务器数据恢复—raid5阵列中多块硬盘离线导致崩溃的数据恢复案例
  • 《深度学习》OpenCV FisherFaces算法人脸识别 原理及案例解析
  • 基于Python+Flask的天气预报数据可视化分析系统(源码+文档)
  • 深入解析 Flutter兼容鸿蒙next全体生态的横竖屏适配与多屏协作兼容架构
  • 【Spring】Spring实现加法计算器和用户登录
  • 电脑d盘不见了怎么恢复?
  • 电子商务网站维护技巧:保持WordPress、主题和插件的更新
  • 交叉编译--目标平台aarch64 ubuntu 22.04
  • 【pytorch】昇思大模型配置python的conda版本
  • nodejs的卸载和nvm安装
  • 网络七层架构
  • 2024年华为OD机试真题-敏感字段加密-Java-OD统一考试(E卷)
  • 图神经网络黑书笔记--术语
  • 原型基于颜色的图像检索与MATLAB
  • 【C++笔试强训】如何成为算法糕手Day9
  • 初识算法 · 二分查找(1)
  • 数据结构:数字统计
  • 网页前端开发之HTML入门
  • Python do while 实现案例
  • docker网络管理详解 一
  • 前端使用Canvas实现网页电子签名(撤销、下载)
  • Lepus安装与配置管理(Lepus Installation and Configuration Management)
  • Tomcat中存放图片文件丢失问题
  • Webpack一键打包多个环境
  • Neo4j 构建文本类型的知识图谱
  • 【SSM详细教程】-03-Spring参数注入
  • 深度学习 %matplotlib inline