Commit 7b59ac51 authored by rockyl's avatar rockyl

增加inputTexture用于外部材质导入

parent 0b83a6ff
......@@ -59,12 +59,21 @@ export class Sheet extends HashObject{
}
}
/**
* 导入外部材质
* @param name
* @param texture
*/
inputTexture(name: string, texture: Texture){
this._textureCache[name] = texture;
}
/**
* 是否有这个纹理
* @param name
*/
hasTexture(name): boolean {
return !!frames[name];
return !!this.frames[name];
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment