The error called when an entity is invalid. This can occur when accessing components on a removed entity.

层级

  • Error
    • InvalidEntityError

属性

id: string

The id of the entity that is now invalid.

message: string
name: string
stack?: string
type: string

The type of the entity that is now invalid.

prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Optional override for formatting stack traces

stackTraceLimit: number

方法

  • Create .stack property on a target object

    参数

    • targetObject: object
    • 可选constructorOpt: Function

    返回 void