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

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

511. 如何用代码控制panel的vscroll滚动幅度 [ 68%]

...in='comp/vscroll.png'; panel.hScrollBarSkin='comp/hscroll.png'; Laya.stage.addChild(panel); //panel的子对象,,切忌要设置宽高,且宽高大于panel宽高 var bg:Sprite=new Sprite(); bg.loadImage("bg2.png",0,0,0,0,Handler.create(this,onLoadedImage,[panel])); bg.size(600,800); panel.addC...

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

512. 粒子编辑器黑屏 [ 68%]

...把此信息截图给研发商 Uncaught TypeError: Cannot read property 'addChild' of null TypeError: Cannot read property 'addChild' of null     at Function.ViewRenderManager.show (file:///E:/LayaAirIDE_1.7.10_beta/resources/app/out/vs/layaEditor/h5/layabuilder.max.js:15196:27)     at Particl...

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

513. putimagedata 不起作用 [ 67%]

...howApe() { // 方法1:使用loadImage var ape = new Sprite(); Laya.stage.addChild(ape); ape.loadImage("../../res/apes/monkey3.png"); // 方法2:使用drawTexture Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function() { var t = Laya.loader.getRes("../../res/apes/monkey2.pn...

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

514. Spine 间隔一段时间卡顿5000毫秒左右,期间GPU占用极高, Demo已上传 [ 67%]

... i = 0; i < 16; i++) { let person = templet.buildArmature(); Laya.stage.addChild(person); person.x = i * unitWidth; person.y = y; person.play("hongse_daiji", true); } }));  //飞碟 this.genSpine("res/spine/ludo_feidie.skel", Laya.Handler.create(this, (templet: Laya.SpineTemplet) => {   //...

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

515. 怎么像canvas那样做到每次循环去清空一次画布,我发现每次画的时候他会把上一次的坐标也画出来,导致变形了,该如何让他每次累加的同时清空上次的路径 [ 67%]

....WebGL); var bg = new Laya.Sprite(); bg.loadImage("comp/hunter.jpg"); this.addChild(bg); Laya.timer.frameLoop(1,this,this.move); // drawSomething(); } move() { sp = new Laya.Sprite(); Laya.stage.addChild(sp); //画曲线 if(x<100){ x++; } sp.graphics.clear(); sp.graphics.drawCurves(10, 58, [x, 0,...

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

516. 使用linkSprite3DToAvatarNode绑定sprite到骨骼上,角色运动时绑定的mesh会经常抖动 [ 67%]

...,除了加入在子节点还有尝试其他解决方案吗,有些特效addchild到mesh上面的话,会影响到父节点的旋转数据,这个你怎么解决的 brooshe • 2018-08-13 11:13 @随风飘:子节点的特效会影响父节点的旋转数据?这不科学吧。我是没遇到过 ...

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

517. 图片使用pivotX参数后,再对图片添加遮罩会出现效果不对。 [ 67%]

...         bg.loadImage("../../res/bg2.png");         Laya.stage.addChild(bg);         bg2 = new Sprite();         bg2.loadImage("../../res/bg2.png");         Laya.stage.addChild(bg2);         bg2.scale(3, 3);         bg2.pivot(50,50)         //创建mas...

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

518. [LayaAir3]LayaAir3.3使用Fairygui开发UI,滤镜效果对不上 [ 67%]

...ew = pkgs[0].createObject("View"); console.log(view); this.owner.addChild(view.displayObject); }); } 我提出的問題是,Fairygui編輯器和Laya編輯器,使用BlendMode和濾鏡的效果不相同。 格局豬 - 趙唐豬豬 • 2025-09-08 12:29 我重新描述問題 需求: 面板...

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

519. 分包项目, 加载js时报错 [ 66%]

...色             txt.color = '#ffffff';             this.addChild(txt);                          var v:View = new View();             v.graphics.drawCircle(50, 50, 100, "#000000");             v.pos(100, 100);             this.addChild(v)...

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

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

...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