• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 153 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0060 秒)

61. laya.ui.Button_API3.0 [ 68%]

... 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

62. laya.particle.Particle2D_API3.0 [ 68%]

...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

63. flash2D没有使用stage3D,所以性能很差,如果通过layaFlash转换成JS后,还存在性能问题吗? [ 68%]

flash2D没有使用stage3D,所以性能很差,如果通过layaFlash转换成JS后,还存在性能问题吗? flash2D没有使用stage3D,所以性能很差,如果通过laya转换成JS后,还存在性能问题吗? 2015-11-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

来源: Laya_社区 发布时间: 20151102

64. laya.media.SoundNode_API3.0 [ 68%]

...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

65. laya.map.GridSprite_API3.0 [ 68%]

...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

66. js继承模式 [ 68%]

...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

67. 模仿教程里的打地鼠写的代码,运行报错 [ 68%]

...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

68. 按钮失效,同UI里的一个图片超链接点击后再返回,出现按钮失效。 [ 68%]

...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

69. laya.ui.List_API3.0 [ 68%]

....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

70. 正交相机要怎么控制啊,坐标什么的全部懵!看了这个官方示例表示不懂,为什么还要转化为2D坐标? [ 68%]

...享 微博 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