Documentation

Unity Engine

Unity Engine

GetEnumerator()

Gets an enumerator that iterates over the name and value of each channel, in the order of the set.
Read time 1 minuteLast updated a day ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public AnimatableFloatChannels.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.