on 设置加载回调
on
类型: MethodDeclaration
所属类: ImageTexture
定义位置: webgl.ts
描述
设置加载回调
参数 type
: 回调事件类型
参数 callback
: 回调函数
参数
参数名 | 类型 | 描述 | 默认值 |
---|---|---|---|
type | string | - | - |
callback | (texture\: this) => void | - | - |
返回值
类型: void
源代码
位置: 第 2312 行
public on(type: string, callback: (texture: this) => void): void {
BaseTexture.prototype.on.call(this, type, callback as any)
}
文档生成时间:2025/7/7 12:07:07