resolveHierarchy method

void resolveHierarchy()

Implementation

void resolveHierarchy() {
  // Resolve nodes.
  int anIdx = 0;

  _drawableNodes.clear();
  int componentCount = this.componentCount;
  for (int i = 1; i < componentCount; i++) {
    ActorComponent? c = _components[i];

    /// Nodes can be null if we read from a file version that contained
    /// nodes that we don't interpret in this runtime.
    if (c != null) {
      c.resolveComponentIndices(_components);
    }

    if (c is ActorNode) {
      _nodes[anIdx++] = c;
    }
  }
}