文档

Unity Engine

Unity Engine

GetEnumerator()

Gets an enumerator that iterates over the name and value of each channel, in the order of the set.
阅读时间1 分钟最后更新于 14 天前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public AnimatableIntChannels.Enumerator GetEnumerator()

Returns

Type

Description

EnumeratorAn enumerator of channel name and value pairs.

Remarks

Use
foreach
or LINQ to read all channels without looking each one up by name. Iterating with
foreach
doesn't allocate memory.