completeResolveHierarchy method

void completeResolveHierarchy()

Implementation

void completeResolveHierarchy() {
  int componentCount = this.componentCount;

  // Complete resolve.
  for (int i = 1; i < componentCount; i++) {
    ActorComponent? c = components[i];
    if (c != null) {
      c.completeResolve();
    }
  }

  // Build lists. Important to do this after all components have resolved as
  // layers won't be known before this.
  for (int i = 1; i < componentCount; i++) {
    ActorComponent? c = components[i];
    if (c is ActorDrawable && c.layerEffectRenderParent == null) {
      _drawableNodes.add(c);
    }
    if (c is ActorLayerEffectRenderer && c.layerEffectRenderParent == null) {
      _effectRenderers.add(c);
    }
  }

  sortDrawOrder();
}