Class SceneModule

EntityBase.

Hierarchy (view full)

Implements

Constructors

Properties

_app?: App
_axesHelper: AxesHelper
_config: EnvConfigOption & {
    [key: string]: any;
} = {}

Type declaration

  • [key: string]: any
_destroyed: boolean = false
_loadedResources: RosourceItemsReturnType
allCameras: Camera[] = []
allControlStates: CameraState[] = []
allScenes: Scene[] = []
appRenderIndex: number = 0
data: ShallowReactive<{
    [key: string]: any;
}> = ...

Type declaration

  • [key: string]: any
extData: {
    [key: string]: any;
} = {}

Type declaration

  • [key: string]: any
instanceId: number = ++AppObject._instanceIdCounter
onSetApp: Signal = ...
moduleName: string = "SceneModule"

Accessors

  • get app(): App
  • Returns App

  • set app(value): void
  • Parameters

    Returns void

  • get destroyed(): boolean
  • Whether it has been destroyed.

    Returns boolean

  • get enabled(): boolean
  • Indicates whether the component is enabled.

    Returns boolean

  • set enabled(value): void
  • Parameters

    • value: boolean

    Returns void

  • get sceneEntity(): any
  • Returns any

Methods

  • Parameters

    • _scene: Scene
    • Optional opts: {
          camera?: Camera;
          cameraState?: CameraState;
          enableTransition?: boolean;
          exitBlurTime?: number;
          oldCamera?: Camera;
          oldScene?: Scene;
      }
      • Optional camera?: Camera
      • Optional cameraState?: CameraState
      • Optional enableTransition?: boolean
      • Optional exitBlurTime?: number
      • Optional oldCamera?: Camera
      • Optional oldScene?: Scene

    Returns Promise<void>

  • Parameters

    • Optional scene: Scene

    Returns void

  • Parameters

    Returns Scene

  • Parameters

    • toClassInst: any
    • Optional methodNames: string[]
    • Optional addMethods: string[]
    • Optional filterName: string[]

    Returns void

  • Returns void

  • 触发指定事件名称.

    Parameters

    • event: string

      Event name

    • Rest ...data: any

      Data

    Returns boolean

    • Whether the dispatching is successful
  • 返回注册的所有事件名.

    Returns string[]

    所有事件名

  • Returns {
        objects: number;
        triangles: number;
        vertices: number;
    }

    • objects: number
    • triangles: number
    • vertices: number
  • 确定是否存在事件侦听

    Parameters

    • event: string

      事件名

    Returns boolean

    返回是否存在相应的事件

  • 初始化场景对象

    Parameters

    Returns void

  • Returns boolean

  • 返回具有指定事件名称的侦听总数.

    Parameters

    • event: string

      Event name

    Returns number

    The count of listeners

  • 通过事件名移除所有监听.

    Parameters

    • Optional event: string

      Event name, delete all events if not passed

    Returns void

  • Parameters

    • _scene: Scene

    Returns boolean

  • Parameters

    • Optional visible: boolean
    • Optional size: number

    Returns void

  • Parameters

    • key: string
    • value: any

    Returns void

  • Returns void

  • Returns void