• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,491 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0057 秒)

381. laya animation播放图片集合,切换时会闪烁一下 [ 81%]

...ring>): Laya.Animation { this.animation = new Laya.Animation(); this.ui.addChild(this.animation); this.animation.loadImages(images); this.animation.interval = 70; this.animation.play(0); return  this.animation } 我不知道你是怎么做的。这样是没问题的 2019-03-25 0 2 分享 微博...

来源: Laya_社区 发布时间: 20190325

382. 滤镜-颜色滤镜 [ 81%]

...pe = new Sprite(); ape.loadImage("../../res/apes/monkey2.png"); Laya.stage.addChild(ape); return ape; } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import ColorFilter = Laya.ColorFilter; import Texture = Laya.Texture; import Browser = Laya.Browser; import Handler = Lay...

来源: Laya_示例 发布时间: 20251209

383. hitTestPoint对象父容器rotation旋转之后检测不了碰撞 [ 81%]

...s.are.width, this.are.height, "#00ff00"); _fish.x = 300 _fish.y = 200 this.addChild(_fish); Laya.timer.loop(100, this, function () { console.log(_fish.x, _fish.y, _fish.width, _fish.height, _fish.rotation); if (_fish.hitTestPoint(_fish.x, _fish.y)) { console.log("hittttttt"); } }); } } //程序入...

来源: Laya_社区 发布时间: 20180315

384. UNITY导出的模型旋转不了 [ 80%]

...ne.ls', Laya.Handler.create(null, function(scene1){ let scene = Laya.stage.addChild(scene1); Laya.Sprite3D.load("/1/res/SampleScene.lh", Laya.Handler.create(null, function(sp) { //let obj = sp; let obj = scene.addChild(sp); obj.transform.scale = new Laya.Vector3(4, 4, 4); obj.transform.rotate(new La...

来源: Laya_社区 发布时间: 20200611

385. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 80%]

...台 var sp:Laya.Sprite = new Laya.Sprite(); sp.loadImage(url); Laya.stage.addChild(sp);//添加到舞台 } private errorHandler(e:Object):void{ } } new GameMain(); ``` 第二种我们可以绘制一个纹理来显示: ```typescript private completeHandler(data:Object):void{ //加载完成返回的...

来源: Laya2.0_文档 发布时间: 20210714

386. U3D导出两个相同的特效。有一个不显示 [ 80%]

...w LoginPanel(); // loginPanel.init(); var s = new Laya.Scene(); Laya.stage.addChild(s); s.addChild(Laya.Sprite3D.load("res/h5/LayaScene_camera/camera.lh")); Laya.Sprite3D.instantiate(Laya.loader.getRes("res/h5/LayaScene_Effect/Effect.lh"),s,true); Laya.Sprite3D.instantiate(Laya.loader.getRes("res/h5...

来源: Laya_社区 发布时间: 20180403

387. 动画实例在调用含有名字参数的时候获取不到边界 [ 80%]

...i].scaleY = 300/bounds.height; this.playerUnit[i].pos(200,400); Laya.stage.addChild(this.playerUnit[i]); } this.playerUnitReady+=1; } enemyUnitLoaded(){ for(let i in this.enemyUnit){ Laya.Animation.createFrames(this.aniUrls("stand",4),"enemy"+i+"stand") this.enemyUnit[i...

来源: Laya_社区 发布时间: 20200910

388. 二进制图片(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 80%]

...片到舞台; var sp = new Laya.Sprite(); sp.loadImage(url); Laya.stage.addChild(sp);//添加到舞台 } function errorHandler(url){ } ``` 第二种我们可以绘制一个纹理来显示: ```JavaScript function completeHandler(data){ //加载完成返回的data是arraybuffer; //.......这里...

来源: Laya2.0_文档 发布时间: 20210715

389. Sprite3D的克隆(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 80%]

...} //完成回调 onComplete() { //获取资源 var layaMonkey = this.scene.addChild(Laya.Loader.getRes("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); //克隆sprite3d var layaMonkey_clone1 = Laya.Sprite3D.instantiate(layaMonkey, this.scene, false, new Laya.Vector3(0.6, 0, 0)); //克隆sprite...

来源: Laya2.0_文档 发布时间: 20210715

390. 类似抠图、挖空效果的实现 [ 80%]

...      blue.on("click", this, onClick);             Laya.stage.addChild(blue);                          //增加一个容器             box = new Sprite();             //设置容器为画布缓存             box.cacheAs = "bitmap";     ...

来源: Laya_社区 发布时间: 20161122