大约有 1,495 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0070 秒)
Laya_社区(920) Laya2.0_文档(193) Laya_示例(125) Laya2.0_示例(101) Laya3.0_api(79) Laya3.0_文档(73) laya_api(2) Laya2.0_api(2)
... _heroItemList[i] = item; } _heroItemList[i].init(heroInfo); panelHeroInfo.addChild(_heroItemList[i]); _heroItemList[i].x = i%3*190; _heroItemList[i].y = parseInt((i/3).toString()) * 155; } console.debug("创建的实例的数量::"+_heroItemList.length); } private function onSelectedHeroChange():vo...
来源: Laya_社区 发布时间: 20170321
....loadAnimation("TimeLine.ani"); //添加到舞台 Laya.stage.addChild(tl); //播放Animation动画 tl.play(0,true); } 报错: lost skin: move/jiantou2.png ,you may load pics first lost skin: move/jiantou2.png ,you may load pics first lost skin: move/jiantou2.png ...
来源: Laya_社区 发布时间: 20171012
...g("load atals ok"); var dlg1:ui.TestDlgUI = new ui.TestDlgUI(); Laya.stage.addChild(dlg1); dlg1.show(); }));在微信小游戏的模拟器上是正常的,但是在手机上就看不到UI。 后来经过调试,发现Dialog的show,默认的showEffect是true,也就是说使用动态效果,但...
来源: Laya_社区 发布时间: 20180525
... = 220; character.pivot(100,100); // character.scale(0.5, 0.5); Laya.stage.addChild(character); return character; } characterA = createCharacter("../res/timg-1.png");上面这段代码不设定sprite的比例时,显示正常;但如果设置比例 character.scale(0.5, 0.5); 显示不正确,详...
来源: Laya_社区 发布时间: 20170828
...。如图1所示。 ```typescript //平面 var plane:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createPlane(10, 10, 10, 10))) as MeshSprite3D; //新建材质 var planeMat:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/threeDimen/Physics/grass.png", Handler.creat...
来源: Laya2.0_文档 发布时间: 20210714
...);//设置 tab 的选择项发生改变时执行的处理器。 Laya.stage.addChild(tab);//将 tab 添到显示列表。 } private function onSelect(index:int):void { trace("当前选择的表情页索引: index= ", index); } } } example Laya.init(640, 800);//设置游戏画布宽高 Laya.stage.bgCo...
来源: Laya3.0_api 发布时间: 20231115
...(bmd); bmp.width = 960; bmp.height = 640; var sp:Sprite = new Sprite(); sp.addChild(bmp); this.addChildAt(sp, 0); Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT; sp.addEventListener(TouchEvent.TOUCH_BEGIN, onTouchBegin); } protected function onTouchBegin(event:TouchEvent):void { log(event.to...
来源: Laya_社区 发布时间: 20160122
...击事件 Laya.stage.once(Event.MOUSE_DOWN,this,function ():void { scene.addChild(layaMonkey); _layaMonkey = layaMonkey; //设置缩放 var tmpLocalScale:Vector3 = layaMonkey.transform.localScale; tmpLocalScale.setValue(0.3, 0.3, 0.3); layaMonkey.transform.localScale = tmpLocalScale; /*添加部分*...
来源: Laya2.0_文档 发布时间: 20210715
...张图片 var image:Image = new Image(); image.skin = "a.png"; Laya.stage.addChild(image); 以上是基本用法,具体开发数据域的限制请参考官方的文档,这里只列出了具体的使用说明 2018-03-10 2 4 分享 微博 QZONE 微信 lvming1983 赞同来自: 那这个怎么...
来源: Laya_社区 发布时间: 20180310
...ite() { picture = new Sprite(); picture.loadImage(picturePath); Laya.stage.addChild(picture); var texture = Laya.loader.getRes(picturePath); picturePath.pivot(texture.width / 2, texture.height / 2); picture.x = Laya.stage.width / 2; picture.y = Laya.stage.height / 2; picture.scale(cardScaleValue, ca...
来源: Laya_社区 发布时间: 20181022