Skip to main content

on 设置加载回调

on​

类型: MethodDeclaration

所属类: ImageTexture

定义位置: webgl.ts

描述​

设置加载回调

参数 type: 回调事件类型

参数 callback: 回调函数

参数​

参数名类型描述默认值
typestring--
callback(texture: this) => void--

返回值​

类型: void

源代码​

位置: 第 2309 行

public on(type: string, callback: (texture: this) => void): void {
BaseTexture.prototype.on.call(this, type, callback as any)
}

文档生成时间:2026/2/1 16:51:41