cancel download jsonLoader & ImageUtils.loadTexture

巧了我就是萌 提交于 2019-12-11 11:49:29

问题


How to cancel the download of an object or texture?

THREE.ImageUtils.loadTexture(...

jsonLoader.load(...

回答1:


AFAIK, it's not built in.

You could edit the XHRLoader class (or create your own) to make the load() function to return the XMLHttpRequest here. This would allow you to call its abort() function.



来源:https://stackoverflow.com/questions/24982978/cancel-download-jsonloader-imageutils-loadtexture

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!