大约有 1,254 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0064 秒)
Laya_社区(850) Laya2.0_文档(116) Laya3.0_api(79) Laya2.0_api(73) laya_api(68) Laya3.0_文档(54) Laya2.0_示例(8) Laya_示例(6)
...ME_SLOW; Laya.Stat.show(); this.scene = Laya.stage.addChild(new Laya.Scene3D()); Laya.timer.loop(1, this, this.loopfun); } loopfun(){ this.lastT = Date.now(); let dis = 1; if(!this.cubeP){ ...
来源: Laya_社区 发布时间: 20200223
...景。 selectBox.height = 32; selectBox.x = 13; selectBox.left = 12; this.addChild(selectBox); var folder = new Clip("../../res/ui/tree/clip_tree_folder.png", 1, 3); folder.name = "folder"; //设置 folder 的name 为“folder”时,将被识别为树结构的文件夹开启状态图表。2帧:...
来源: Laya2.0_文档 发布时间: 20210715
graphics alpha 问题 var aa:Sprite = new Sprite(); Laya.stage.addChild(aa); var g:Graphics = aa.graphics; g.alpha(0.5); g.drawRect(0,0,200,200,"#ff0000"); g. alpha()这个方法有bug吧,设置之后出现的结果不对,并不是设定的透明度!! !!而且有个很有意...
来源: Laya_社区 发布时间: 20161219
...ar scene = Laya.Scene.load("LayaScene_layaScene/layaScene.ls"); Laya.stage.addChild(scene); var camera = new Laya.Camera(0, 0.1, 1000); //加载到场景 scene.addChild(camera); 2018-11-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...
来源: Laya_社区 发布时间: 20181107
... ani.getGraphicBounds(); ani.scale(80/bounds.width ,80/bounds.height) this.addChild(ani) } } Laya.class(Item1, "Item1", Box); var List = Laya.List; function setup(effList) { var list = new List(); list.itemRender = Item1; list.repeatX = 3; list.repeatY = 4; list.x = (Laya.stage.width - WID * list.re...
来源: Laya_社区 发布时间: 20170627
...el/hanbao.lh"); goldNode = this.scene_3d.addChild(sp); goldNode.transform.localPosition = new Laya.Vector3(this.startPos.x + (4.5 - Math.random() * 9), this.startPos.y, this.startPos.z + (2.5 - Math.random() * 5)); ...
来源: Laya_社区 发布时间: 20200326
...ne.ls', Laya.Handler.create(null, function(scene1){ let scene = Laya.stage.addChild(scene1); Laya.Sprite3D.load("/1/res/SampleScene.lh", Laya.Handler.create(null, function(sp) { //let obj = sp; let obj = scene.addChild(sp); obj.transform.scale = new Laya.Vector3(4, 4, 4); obj.transform.rotate(new La...
来源: Laya_社区 发布时间: 20200611
... 在官方 dialog 那个demo中,不适用show,改为 Laya.stage.addChild(dialog1) 就可实现此效果。 2017-03-31 0 1 分享 微博 QZONE 微信 cuixueying 赞同来自: LayaAir本身就是一个canvas标签,多窗口可以实现,你用js原生的方法来做即可,添加多个c...
来源: Laya_社区 发布时间: 20170331
...ree.width) / 2; tree.y = (Laya.stage.height - tree.height) / 2; Laya.stage.addChild(tree); } } } import Box = Laya.Box; import Clip = Laya.Clip; // 此类对应的json对象: // {"child": [{"type": "Clip", "props": {"x": "13", "y": "0", "left": "12", "height": "24", "name": "selectBox", "skin": "u...
来源: Laya2.0_文档 发布时间: 20210714
...s.are.width, this.are.height, "#00ff00"); _fish.x = 300 _fish.y = 200 this.addChild(_fish); Laya.timer.loop(100, this, function () { console.log(_fish.x, _fish.y, _fish.width, _fish.height, _fish.rotation); if (_fish.hitTestPoint(_fish.x, _fish.y)) { console.log("hittttttt"); } }); } } //程序入...
来源: Laya_社区 发布时间: 20180315