大约有 1,495 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0073 秒)
Laya_社区(920) Laya2.0_文档(193) Laya_示例(125) Laya2.0_示例(101) Laya3.0_api(79) Laya3.0_文档(73) laya_api(2) Laya2.0_api(2)
...,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
...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
...; 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
...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
...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
...一个平面。如图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
...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
...界面 var Main: MenuPageUI = new MenuPageUI(); Laya.stage.addChild(Main); } 在我找原因的时候,我发现主要是和设置了基础路径有关,也发现了3种可以正常展示飞机的做法。 做法A:直接将Laya.URL.basePath ="https://xxx.com/";设置基础路径...
来源: Laya_社区 发布时间: 20191122
... 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
...': 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