MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / GetEnumerator

Method GetEnumerator

StereoKit/Assets/Model.cs:825–830  ·  view source on GitHub ↗

Gets an enumerator for the collection. An enumerator.

()

Source from the content-addressed store, hash-verified

823 /// <summary>Gets an enumerator for the collection.</summary>
824 /// <returns>An enumerator.</returns>
825 public IEnumerator<ModelNode> GetEnumerator()
826 {
827 int count = Count;
828 for (int i = 0; i < count; i++)
829 yield return new ModelNode(_model, NativeAPI.model_node_index(_model._inst, i));
830 }
831 IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
832
833 /// <summary>This adds a root node to the `Model`'s node hierarchy! If

Callers

nothing calls this directly

Calls 1

model_node_indexMethod · 0.80

Tested by

no test coverage detected