active property

bool get active

Whether the scene's primary camera currently resolves to this component.

Implementation

bool get active {
  final renderScene = isAttached ? node.internalRenderScene : null;
  return renderScene != null &&
      identical(renderScene.primaryCamera, toCamera());
}