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

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

91. 关于panel的content的鼠标响应区域 [ 68%]

... · 一个panel对象,高度500 · 一个box对象,高度1000 · panel.addChild(box)· 设置panel的垂直滚动skin,让它可以响应鼠标滚动   运行后发现: 能响应鼠标事件的位置只有box的上半部分(上面的500 px) (把box滚动到最下面,就无法再滚...

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

92. 使用以下代码打开超大分辨率图片 WebGL 模式无法正常显示 [ 67%]

...dImage("comp/hug.png"); //读取大分辨率图片 无法显示 Laya.stage.addChild(sp); } } new GameMain();//问题描述 客户要求使用LAYA引擎打开一张图片 可以随意拖动缩放, 由于图太大, 选择使用WebGL模式打开图片 以上代码当图片分辨率不太大时 正常...

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

93. 提交一个MovieClip的BUG [ 67%]

... = ani_border.pivotX = 245; ani_border.load("swf/planet/border.swf",true); addChild(ani_border); 2018-05-29 3 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 苍蝇也是鸟 赞同来自: 只要不是在同一时间...

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

94. 动画挂点(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 67%]

...SceneMonkey.ls",Handler.create(this,function(res:Scene3D):void{ Laya.stage.addChild(res); //用于挂点的精灵 var box: MeshSprite3D = new MeshSprite3D(PrimitiveMesh.createBox(1,1,1)); var material: BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/layabox.png", Handler.create(th...

来源: Laya2.0_文档 发布时间: 20210714

95. laya.ui.Image_API3.0 [ 67%]

...象的宽度。 bg.height = 250;//设置 bg 对象的高度。 Laya.stage.addChild(bg);//将此 bg 对象添加到显示列表。 var image:Image = new Image("resource/ui/image.png");//创建一个 Image 类的实例对象 image ,并传入它的皮肤。 image.x = 100;//设置 image 对象的属性 ...

来源: Laya3.0_api 发布时间: 20231115

96. iphoneX环境下新手引导的抠图透明区域为黑色,其它机型都是正常的。 [ 67%]

...r = new Sprite(); this.guideContainer.cacheAs = "bitmap"; Utils.GuideLayer.addChild(this.guideContainer); this.guideContainer.on(Laya.Event.CLICK, this, this.nextStep); this.mouseEnabled = false; var maskArea: Laya.Sprite = new Laya.Sprite(); maskArea.alpha = 0.5; maskArea.graphics.drawRect(0, 0, La...

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

97. [LayaAir3]关于drawToRenderTexture2D绘制后图像模糊问题补充 [ 67%]

...l, true, true, null, 80/56, 80/56); let t2 = new Laya.Sprite(); Laya.stage.addChild(t2); let Texture = Laya.Texture.create(t, 0, 0, t.width, t.height); t2.graphics.drawImage(Texture, 0, 0, 56, 56); } 2025-09-23 0 0 分享 微博 QZONE 微信 LayaAir大为 赞同来自: 肖亮亮 您好,我们已...

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

98. 物理引擎-Slingshot [ 67%]

...esize); } function initMatter() { var gameWorld = new Sprite(); Laya.stage.addChild(gameWorld); // 初始化物理引擎 engine = Matter.Engine.create( { enableSleeping: true }); Matter.Engine.run(engine); var render = LayaRender.create( { engine: engine, width: 800, height: 600, options: { backgrou...

来源: Laya_示例 发布时间: 20251130

99. 图像组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 67%]

... = new Laya.Image("resources/layaAir.png"); img.pos(165, 62.5); this.owner.addChild(img); } } Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:59 img{cursor:pointer}

来源: Laya3.0_文档 发布时间: 20251010

100. laya.display.Sprite_API3.0 [ 67%]

...otY = 0;//设置 sprite 对象的垂直方法轴心点坐标。 Laya.stage.addChild(sprite);//将此 sprite 对象添加到显示列表。 sprite.on(Event.CLICK, this, onClickSprite);//给 sprite 对象添加点击事件侦听。 shape = new Sprite();//创建一个 Sprite 类的实例对象 sprite ...

来源: Laya3.0_api 发布时间: 20231115