函数 addBeforeInitCallback

  • 参数

    • callback: (stageConfig: IStageConfig) => void | Promise<void>

      The initialization function of the module.

    返回 void

    Execute custom logic before engine initialization. At this time, the Stage has not been created yet, so you can modify stageConfig to implement dynamic stage configuration. All registered callbacks are executed in the order of registration.

    在引擎初始化前执行自定义逻辑。 此时 Stage 尚未创建,可以修改 stageConfig 实现动态舞台配置。所有注册的回调按注册顺序依次执行。