大约有 153 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0060 秒)
Laya_社区(77) Laya3.0_api(64) laya_api(3) Laya2.0_api(3) Laya_示例(2) Laya2.0_文档(2) Laya3.0_文档(1) Laya2.0_示例(1)
... Button_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/button.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成...
来源: Laya3.0_api 发布时间: 20231115
...ponents customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize emitter filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY rotation scaleX scaleY scene scrollRect s...
来源: Laya3.0_api 发布时间: 20231115
flash2D没有使用stage3D,所以性能很差,如果通过layaFlash转换成JS后,还存在性能问题吗? flash2D没有使用stage3D,所以性能很差,如果通过laya转换成JS后,还存在性能问题吗? 2015-11-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20151102
...ponents customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D isMusic loop mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY playEvent rotation scaleX scaleY sce...
来源: Laya3.0_api 发布时间: 20231115
...ponents customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY rotation scaleX scaleY scene scrollRect skewX ske...
来源: Laya3.0_api 发布时间: 20231115
...s); this.img = []; this.init(); } Class.prototype.init = function() { Laya.stage.addChild(this); this.bg(); Laya.timer.frameLoop(1, this, this.loop); }; Class.prototype.bg = function() { for (var i = 0; i < 2; i++) { this.img[i] = new Laya.Image('background.png'); this.addChild(this.img[i]); } th...
来源: Laya_社区 发布时间: 20170619
...unction(){ //初始化引擎 Laya.init(800,600); //设置背景颜色 Laya.stage.bgColor = "#ffcccc"; //加载资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) })(); function onLoaded(){ //实例化 var tempBG=new background(); Laya.stage.addCh...
来源: Laya_社区 发布时间: 20180129
...nt.CLICK,null,function(){ //TO GamePage2 console.log("left onclick"); Laya.stage.addChild(new GameView); }); //分享快乐 this.StartRight.on(Laya.Event.CLICK,null,function(){ //超链接 onLink(href); }); //天猫Logo this.img_TianMao.on(Laya.Event.CLICK,null,function(){ //超链接 onLink(hre...
来源: Laya_社区 发布时间: 20180810
....init(640, 800, "false");//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vscroll.png", "resource/ui/vscroll$bar.png", "resource/ui/vscroll$down.png", "resource/ui/vscroll$up.png"], Handler.create(this, onLoad...
来源: Laya3.0_api 发布时间: 20231115
...享 微博 QZONE 微信 sfsmmc 赞同来自: Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var dialog = Laya.stage.addChild(new Laya.Image("../../res/threeDimen/texture/earth.png")); var scene = Laya.stage.addChild(new Laya.Sce...
来源: Laya_社区 发布时间: 20170807