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

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

771. 我想移动容器来实现前进的动画,但是移动不了。这里的y有问题 但是又不知道改成什么 [ 49%]

...); bg2.loadImage("war/bc.png"); //更改背景2 放在背景1的上面 bg2.pos(0,852); Laya.stage.addChild(this); Laya.timer.frameLoop(1,this,myLoop);   } function myLoop(){ this.y=Laya.stage; // console.log("y is"+y); this.y+=1; // 如果背景图到了下面不可见的位置,立即调整位置...

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

772. 使用mask后,只要调用 Laya.Resource.destroyUnusedResources() 就会引起报错 [ 48%]

...prite(); bgSprite.graphics.drawRect(0, 0, 200, 200, "#0xFFFF00"); bgSprite.pos(300, 300); Laya.stage.addChild(bgSprite); let mask = new Laya.Sprite(); bgSprite.mask = mask; mask.graphics.drawCircle(0, 0, 100, "0x0000FF"); window.onblur = function() { console.log("onblur....?"); Laya.timer.once(2000,...

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

773. laya.map.MapLayer_API3.0 [ 48%]

...ties getMousePoint getObjectByName getObjectDataByName getRepaint getScreenPositionByTilePos getSelfBounds getTileData getTileDataByScreenPos getTilePositionByScreenPos get_anchorX get_anchorY get_height get_scaleX get_scaleY get_transform get_visible get_width globalToLocal hasHideFlag hasListener ...

来源: Laya3.0_api 发布时间: 20231115

774. 3D空间转2D空间的问题 [ 48%]

...间我用的是 this.camera.viewport.project(this.playerArray[i].transform.position, this.camera.projectionViewMatrix, this.imgPos2); 转换的坐标到this.imgPos2里面。 像这样的一个场景。加载图片到3D物体上跟着3D物体跑动这样是没有问题的,而我。但当要做的...

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

775. laya.ui.DialogManager_API3.0 [ 48%]

...rialize onAwake onDestroy onDisable onEnable once open parentRepaint pivot pos reCache removeChild removeChildAt removeChildByName removeChildren removeSelf render repaint replaceChild runCallLater scale setChildIndex setGraphics setLockView setSelfBounds set_anchorX set_anchorY set_height set_scale...

来源: Laya3.0_api 发布时间: 20231115

776. [LayaAirIDE3]skel骨骼动画播放失败,编辑器预览没问题 [ 48%]

...    this.spr_xiaoshan.addChild(this.skeleton);         this.skeleton.pos(0, 0);         this.skeleton.scale(0.3, 0.3);         this.skeleton.play(0, true);     } else {         console.warn("无效的 skeleton, 跳过添加:", templet);     } }});只出现一闪而过,没有...

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

777. laya.ani.swf.MovieClip_API3.0 [ 48%]

... onAwake onDestroy onDisable onEnable once parentRepaint pivot play playTo pos reCache removeChild removeChildAt removeChildByName removeChildren removeLabel removeSelf render repaint replaceChild runCallLater scale setChildIndex setGraphics setSelfBounds set_anchorX set_anchorY set_height set_scale...

来源: Laya3.0_api 发布时间: 20231115

778. 龙骨删除后内存不减少 [ 48%]

...ton = templet.buildArmature(1);                          this.pos1.addChild(this.skeleton);             this.skeleton.play("work", true);         });         templet.loadAni("spine/ndz01/ndz01.sk"); 我龙骨是这样调用的,后面不用了,我就  this.skeleton.des...

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

779. 【字节小游戏】游戏中播放视频 [ 48%]

...Laya.Sprite = new Laya.Sprite(); Laya.stage.addChild(reference); reference.pos(100, 100); reference.size(600, 400); reference.graphics.drawRect(0, 0, reference.width, reference.height, "#CCCCCC"); // 每次舞台尺寸变更时,都会调用Utils.fitDOMElementInArea设置Video的位置,对齐的...

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

780. 给每个精灵绑定点击事件,但点击精灵的时候时而触发时而不触发点击事件 [ 48%]

...为什么会偶尔触发一次的原因所在   修改方式: 将body的pos坐标去掉,让size值从左上角开始算起即可 2016-11-21 1 3 分享 微博 QZONE 微信 ai834398016 赞同来自: 点击运行结果可以查看,偶尔点击了没反应 GlabRP.zip 2016-11-21 0 3 分享 微博 ...

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