当前位置:网站首页>GetEnumerator method and MoveNext and Reset methods in Unity
GetEnumerator method and MoveNext and Reset methods in Unity
2022-08-05 06:33:00 【IT apprentice.】
GetEnumerator method and MoveNext and Reset methods in Unity
Function: is a method in the System.Collections namespace that returns an enumerator that iterates through the collection.
Return value: Returns an actionable enumerator.
Note: can be used to read data in a collection, but not to modify the underlying collection.
As shown here, we define a dictionary to store the data of type ClientWorldNodeData and its index:
Then call it here:
You can get all the enumeration data in this collection (can only be read but not modified), and the enumerator will be positioned before the first element in the collection at the beginning.Then use the IEnumerator.Current property (similar to pointers in C++) to get the element in the collection at the current position of the enumerator.
MoveNext
Action: MoveNext sets Current to the next element.(similar to moving a pointer back one place in C++)
Note: If MoveNext goes past the end of the set, the enumerator will be placed last in the setAfter an element, and MoveNext returns false.
Reset
Effect: Sets the enumerator to its initial position, which is before the first element in the collection.
边栏推荐
- 618, you may be able to wake up a little bit
- Spark source code-task submission process-6.2-sparkContext initialization-TaskScheduler task scheduler
- 网络排错基础-学习笔记
- LinkSLA insists that users come first and creates a sustainable operation and maintenance service plan
- Proprietary host CDH
- flink cdc 目前支持Gauss数据库源吗
- From "dual card dual standby" to "dual communication", vivo took the lead in promoting the implementation of the DSDA architecture
- VLAN is introduced with the experiment
- Detailed explanation of ten solutions across domains (summary)
- DevOps process demo (practical record)
猜你喜欢

config.js相关配置汇总

LinkSLA坚持用户第一,打造可持续的运维服务方案

DevOps流程demo(实操记录)
![[问题已处理]-虚拟机报错contains a file system with errors check forced](/img/07/1222a44dd52b359bf7873e6f3b7ebf.png)
[问题已处理]-虚拟机报错contains a file system with errors check forced

增长:IT运维发展趋势报告
time complexity and space complexity

Take you in-depth understanding of cookies

Small example of regular expression--validate email address

One-arm routing experiment and three-layer switch experiment

selenium学习
随机推荐
Programmers should understand I/O this way
教您简单几步实现工业树莓派正确安装RS232转USB驱动
Disk management and file systems
link 和@improt的区别
Chengyun Technology was invited to attend the 2022 Alibaba Cloud Partner Conference and won the "Gathering Strength and Going Far" Award
网络排错基础-学习笔记
[ingress]-ingress使用tcp端口暴露服务
DevOps流程demo(实操记录)
Billions of IT operations in the market, the product by strength to speak
What's the point of monitoring the involution of the system?
7步完成云上监控
VLAN is introduced with the experiment
程序员应该这样理解I/O
User and user group management, file permission management
传输层协议
RAID disk array
用户和用户组管理、文件权限管理
Collection of error records (write down when you encounter them)
Introduction to Network Layer Protocols
RAID磁盘阵列