取消下载 jsonLoader &ImageUtils.loadTexture [英] cancel download jsonLoader & ImageUtils.loadTexture

查看:26
本文介绍了取消下载 jsonLoader &ImageUtils.loadTexture的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何取消对象或纹理的下载?

How to cancel the download of an object or texture?

THREE.ImageUtils.loadTexture(...

jsonLoader.load(...

推荐答案

AFAIK,它不是内置的.

AFAIK, it's not built in.

您可以编辑 XHRLoader 类(或创建您自己的)以制作load() 函数返回 XMLHttpRequest 此处.这将允许您调用它的 abort() 函数.

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.

这篇关于取消下载 jsonLoader &ImageUtils.loadTexture的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆