大约有 24 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0025 秒)
...36,640); var sp = new Laya.Sprite(); var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,completeHandler); xhr.once(Laya.Event.ERROR,this,errorHandler); xhr.send("res/monkey2.png","","get","arraybuffer"); function completeHandler(data){ //加载完成返回的data是arraybuffer; //...
来源: Laya2.0_文档 发布时间: 20210715
...36,640); var sp = new Laya.Sprite(); var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,this.completeHandler); xhr.once(Laya.Event.ERROR,this,this.errorHandler); xhr.send("res/a.png","","get","arraybuffer"); } private completeHandler(data:Object):void{ //加载完成返回的data是...
来源: Laya2.0_文档 发布时间: 20210714
...var sp:Sprite = new Sprite(); var xhr:HttpRequest = new HttpRequest(); xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.send("res/monkey2.png","","get","arraybuffer"); } private function completeHandler(data:Object):void { //加载完成返回的data是arra...
来源: Laya2.0_文档 发布时间: 20210714
...))。 > 放置猴子 ```typescript //监听一次点击事件 Laya.stage.once(Laya.Event.MOUSE_DOWN,this,function () { scene.addChild(layaMonkey); this._layaMonkey = layaMonkey; //设置缩放 var tmpLocalScale = layaMonkey.transform.localScale; tmpLocalScale.setValue(0.3, 0.3, 0.3); layaMonkey.tr...
来源: Laya2.0_文档 发布时间: 20210715
...))。 > 放置猴子 ```typescript //监听一次点击事件 Laya.stage.once(Laya.Event.MOUSE_DOWN,this,function () { scene.addChild(layaMonkey); this._layaMonkey = layaMonkey; //设置缩放 var tmpLocalScale = layaMonkey.transform.localScale; tmpLocalScale.setValue(0.3, 0.3, 0.3); layaMonkey.tr...
来源: Laya2.0_文档 发布时间: 20210715
...))。 > 放置猴子 ```typescript //监听一次点击事件 Laya.stage.once(Event.MOUSE_DOWN,this,function ():void { scene.addChild(layaMonkey); _layaMonkey = layaMonkey; //设置缩放 var tmpLocalScale:Vector3 = layaMonkey.transform.localScale; tmpLocalScale.setValue(0.3, 0.3, 0.3); layaMonkey...
来源: Laya2.0_文档 发布时间: 20210715
...,我们再网格加载完成3秒后对该网格进行销毁 Laya.timer.once(3000,this,function() { //销毁了使用了该网格的精灵 layaMonkey.destroy(); //对网格进行销毁 mesh.destroy(); }); })); ``` **加载完成** 在资源全部加载完成之后,我们可以看到 67.26 M 的...
来源: Laya2.0_文档 发布时间: 20210715
...,我们再网格加载完成3秒后对该网格进行销毁 Laya.timer.once(3000,this,function ():void { //销毁了使用了该网格的精灵 layaMonkey.destroy(); //对网格进行销毁 mesh.destroy(); }); })); ``` **加载完成** 在资源全部加载完成之后,我们可以看到 67.26 M...
来源: Laya2.0_文档 发布时间: 20210715
...w Laya.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.on(Event.PROGRESS,this,processHandler); xhr.send("res/data.data","","get","text"); function processHandler(data){ console.log(data); } fu...
来源: Laya2.0_文档 发布时间: 20210714
...,我们再网格加载完成3秒后对该网格进行销毁 Laya.timer.once(3000,this,function ():void { //销毁了使用了该网格的精灵 layaMonkey.destroy(); //对网格进行销毁 mesh.destroy(); }); })); ``` **加载完成** 在资源全部加载完成之后,我们可以看到 67.26 M...
来源: Laya2.0_文档 发布时间: 20210715