大约有 1,493 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0054 秒)
Laya_社区(918) Laya2.0_文档(193) Laya_示例(125) Laya2.0_示例(101) Laya3.0_api(79) Laya3.0_文档(73) laya_api(2) Laya2.0_api(2)
... ... ], XXX, XXX); 加载: var effect = actor.mView.root.addChild(Laya.Sprite3D.load("Resources/Player/nan_jianshi/Effect/dmc_skycity_attack1/.lh")); effect.once(Laya.Event.HIERARCHY_LOADED, this, function(){ var part...
来源: Laya_社区 发布时间: 20170614
... panel.vScrollBarSkin = ""; panel.hScrollBarSkin = ""; panel.addChild(dialog); Laya.stage.addChild(panel); })) } })(); </pre> 2018-02-02 0 0 分享 微博 QZONE 微信 Devilsparta 赞同来自: 这个是代码,图片是 https://layaair.ldc.layabox.com/demo/?cate...
来源: Laya_社区 发布时间: 20180201
...conSpr = new Sprite(); iconSpr.width = 1280; iconSpr.height = 640; iconSpr.addChild(img); btn.on(Event.CLICK,this,runGame1); } private function runGame1():void { xNum = Math.random()*7 - 3; yNum = Math.random()*7 - 3; Laya.timer.loop(20,this,onRun); Laya.timer.frameLoop(10,this,refresh); } private f...
来源: Laya_社区 发布时间: 20180113
... = Math.random() * 0.75 + 0.25; //创建盒型MeshSprite3D var box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(sX, sY, sZ))); //创建刚体碰撞器 var rigidBody = box.addComponent(Laya.Rigidbody3D); //创建盒子形状碰撞器 var boxShape = new Laya.BoxColliderShape(sX,...
来源: Laya2.0_文档 发布时间: 20210715
...); var cc = new laya.resource.Texture(data); ss.source = cc; // Laya.stage.addChild(sp);//添加到舞台 } function errorHandler(url) { gbx.log("2222222222222222") } } ss 是一个image, data 已经下载到了 在native下,怎么画出来 2018-02-01 0 0 分享 微博 QZONE 微信 daibao520 ...
来源: Laya_社区 发布时间: 20180201
...model+".atlas",Handler.create(this,onLoad)); function onLoad():void { this.addChild(ani); var bounds:Rectangle = ani.getBounds(); Control.showLog(bounds.toString()); } 附件 : --> 2018-03-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...
来源: Laya_社区 发布时间: 20180307
...ScrollBarSkin = "comp/vscroll.png"; //将panel添加到stage上 Laya.stage.addChild(panel); //实例化Image组件 var img = new Laya.Image(); //给image添加皮肤 img.skin = "comp/image.png"; //将image添加到panel组件中 panel.addChild(img); } ```
来源: Laya2.0_文档 发布时间: 20210715
...Label = res.create(); //添加预制体Label字体到box节点下 this.box.addChild( label ); } ); } } 运行效果如图3-6所示 (图3-6) 3.2 3D预制体 3D预制体的使用过程同2D预制体一样,在这里我们就不介绍如何制作预制体了,通过下面的示例来看看3D预...
来源: Laya3.0_文档 发布时间: 20241014
...,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