当前位置:网站首页>UE4蓝图学习篇(四)--流程控制ForLoop和WhileLoop
UE4蓝图学习篇(四)--流程控制ForLoop和WhileLoop
2022-07-06 14:48:00 【卡西莫多说】
今天给大家介绍另外的流程控制节点。
流程控制-ForLoop
ForLoop是利用计数器所具备的计数循环次数功能来进行处理的。循环从第一个索引值进来,然后依次增加1,达到最后一个索引的时候循环结束。
First Index:第一个索引值,Last Index:最后一个索引值,Loop Body:循环体
Index:当前索引,Completed:循环结束后执行的操作
数组与ForEachLoop
数组可以对多个值进行集中管理,处理保管于数组中的所有数据时会用到循环。
添加一个数组,并给它添加一些元素
Array连接的时一个建立的数组,LoopBody是循环体,ArrayElement是数组元素,ArrayIndex是数组索引,从0开始,Compieted是完成后的操作。
例子:求数组中元素的平均值
whileLoop
whileLoop需要一个bool值进行判断是否进入到循环中,当bool值为false的时候退出循环。
例子:判断一个数是否是质数
除了1和它本身,不可以被其他书数整除
先判断num数值是否和counter相等,如果为false,再去判断%counter是否为0,如果能被counter整除,它就不是质数,counter每次加1 。
边栏推荐
- Oracle-控制文件及日志文件的管理
- Solve project cross domain problems
- sizeof关键字
- 二分图判定
- 硬件開發筆記(十): 硬件開發基本流程,制作一個USB轉RS232的模塊(九):創建CH340G/MAX232封裝庫sop-16並關聯原理圖元器件
- 数据处理技巧(7):MATLAB 读取数字字符串混杂的文本文件txt中的数据
- 剪映+json解析将视频中的声音转换成文本
- Daily question 1: force deduction: 225: realize stack with queue
- 每日一题:力扣:225:用队列实现栈
- LeetCode 练习——剑指 Offer 26. 树的子结构
猜你喜欢
Heavyweight news | softing fg-200 has obtained China 3C explosion-proof certification to provide safety assurance for customers' on-site testing
Aardio - 利用customPlus库+plus构造一个多按钮组件
MySQL----初识MySQL
Netxpert xg2 helps you solve the problem of "Cabling installation and maintenance"
Leetcode question brushing (XI) -- sequential questions brushing 51 to 55
Crawler obtains real estate data
小常识:保险中的“保全”是什么?
HDR image reconstruction from a single exposure using deep CNNs阅读札记
Classic sql50 questions
pytorch_YOLOX剪枝【附代码】
随机推荐
Aardio - 利用customPlus库+plus构造一个多按钮组件
OpenCV VideoCapture. Get() parameter details
【sdx62】WCN685X将bdwlan.bin和bdwlan.txt相互转化操作方法
QT | UDP broadcast communication, simple use case
剑指offer刷题记录1
3DMax指定面贴图
Aardio - 封装库时批量处理属性与回调函数的方法
[leetcode daily clock in] 1020 Number of enclaves
Management background --4, delete classification
[sciter]: encapsulate the notification bar component based on sciter
第4章:再谈类的加载器
Advantages of link local address in IPv6
Leetcode question brushing (XI) -- sequential questions brushing 51 to 55
Unity3d minigame unity webgl transform plug-in converts wechat games to use dlopen, you need to use embedded 's problem
General implementation and encapsulation of go diversified timing tasks
0 basic learning C language - digital tube
[Digital IC hand tearing code] Verilog burr free clock switching circuit | topic | principle | design | simulation
Management background --3, modify classification
RESNET rs: Google takes the lead in tuning RESNET, and its performance comprehensively surpasses efficientnet series | 2021 arXiv
Netxpert xg2 helps you solve the problem of "Cabling installation and maintenance"