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

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

1051. 在Unity中导出拖尾系统(ActionScript-3D基础(AS3)-LayaAir3D之拖尾系统) [ 62%]

...,function(sp:Sprite3D):void{ //将加载的拖尾添加给示例盒子 box.addChild(sp); //为了体现效果,我们移动盒子和摄影机观察效果 Laya.timer.frameLoop(1,this,function():void{ //使用差速来体现移动 box.transform.translate(new Vector3(0,0.05,0),false); camera.transform...

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

1052. 2d粒子旋转时大小也会随着改变 [ 62%]

...le2D(setting); sp.pos(200, 200); sp.emitter.start(); sp.play(); Laya.stage.addChild(sp); sp.rotation = 80; }附件中为旋转80、45、0角度时的现象   问题补充: Laya.init(720, 1280);这样就正常了。 Laya.init(720, 1280, laya.webgl.WebGL);这样就出现这个问题,应该在we...

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

1053. Uncaught TypeError: Cannot read property 'XXX' of undefined [ 62%]

...;             spe.size(512, 512);             Laya.stage.addChild(spe);             spe.graphics.drawRect(0, 0, 515, 515, "#996633", "#333333");             spe.on(Event.MOUSE_DOWN, spe, onMouseDown);             Laya.stage.on(Event.MOUSE_UP, this, onMous...

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

1054. 加载SK文件时,报错如下:Uncaught getUint16 error - Out of bounds [ 62%]

...ETE, this, function(){ var roleAni = roleTemp.buildArmature(1); Laya.stage.addChild(roleAni); }) roleTemp.loadAni('res/spine/knight/effect1.sk'); SK动画已经预加载了:Laya.loader.load(['res/spine/knight/effect1.png', 'res/spine/knight/effect1.sk'], Handler.create(this, init)); 2018-03-23 添...

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

1055. 问一下这个问题要怎么改啊? [ 62%]

...c.graphics.drawTexture(Laya.loader.getRes(picUrl), picX, picY); Laya.stage.addChild(pic); } } }   Main.as package { import laya.display.*; import laya.resource.Texture; import laya.ui.Image; import laya.utils.Handler; import addPic; public class Main { private var bgImage:Image; private var bgRes:S...

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

1056. 物理碰撞器(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 62%]

...一个平面。如图1所示。 ```typescript //平面 var plane = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane(10, 10, 10, 10))) as Laya.MeshSprite3D; //新建材质 var planeMat:Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Phys...

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

1057. laya.ui.Button_API3.0 [ 62%]

...ickButton,[button]);//设置 button 的点击事件处理器。 Laya.stage.addChild(button);//将此 button 对象添加到显示列表。 } private function onClickButton(button:Button):void { trace("按钮button被点击了!"); } } } example Laya.init(640, 800);//设置游戏画布宽高、渲...

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

1058. Laya中Button等组件lose skin的问题 [ 62%]

...界面     var Main: MenuPageUI = new MenuPageUI();     Laya.stage.addChild(Main); } 在我找原因的时候,我发现主要是和设置了基础路径有关,也发现了3种可以正常展示飞机的做法。 做法A:直接将Laya.URL.basePath ="https://xxx.com/";设置基础路径...

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

1059. layaAir如何实现for循环加载多张图片,并且通过事件按比例缩小 [ 62%]

...             apesCtn=new Sprite()             Laya.stage.addChild(apesCtn);             for (var i:int = 0; i < 4; i++ )             {                 Laya.loader.load(picAy[i],Handler.create(this, onAssetLoaded))             }        ...

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

1060. 求救 Laya2.0下的Particle2D问题 [ 62%]

...': play = false; break; } if (play) { frame.rotation=frameRotation; sprite.addChild(frame); frame.pos(frameX, frameY); frame.emitter.start(); frame.play(); } else { sprite.removeChildren(); } })); } else { return; } } 2019-07-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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