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

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

1261. 当使用Image作为一个对象的遮罩时,设置Image的ScaleX为0时遮罩失效! [ 55%]

...var img:Laya.Image = new Laya.Image(); img.skin = "comp/img_pro.png"; Laya.stage.addChild(img); var imgMask:Laya.Image = new Laya.Image(); imgMask.skin = img.skin; imgMask.scaleX = 0; // 无效 // imgMask.scaleX = 1 // 有效 //imgMask.scaleX = 0.5 // 有效 img.mask = imgMask; imgMask.repaint(); } ...

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

1262. 小白求助,关于时间轴动画如何设置播放一次后消失? [ 55%]

...() { var tl = new Laya.Animation(); tl.loadAnimation("democesi.ani"); Laya.stage.addChild(tl); tl.play(); tl.pos(302,650); } 2018-01-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: 为你的...

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

1263. laya.ani.swf.MovieClip_API3.0 [ 55%]

...s count customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea index is3D mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY playing rotation scaleX scaleY scene scroll...

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

1264. 改变位置后,点击区域不生效了 [ 55%]

...ics.drawRect(0,0,100,100,"#ff0000"); sp.on(Event.CLICK,this,onClick); Laya.stage.addChild(sp); } private function onClick(event:Event):void{ Render._mainCanvas.source.style.left = "100px"; Render._mainCanvas.source.style.top = "100px"; trace("onClick"); } } } 就这么一段简单的代码,求指...

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

1265. 读取json对象 [ 55%]

...擎             Laya.init(1136, 640);             Laya.stage.bgColor = "#ffffff";             Stat.show(300,0);             var arr:Array = new Array();             Laya.loader.load("test.json", Handler.create(this, onLoaded), null, Loader.ATLAS);     ...

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

1266. 用最新版本的IDE开发,用AS语言开发,用HttpRequest加载图片报错,用JS语言开发却可以加载 [ 55%]

...图片到舞台; var sp:Sprite = new Sprite(); sp.loadImage(url); Laya.stage.addChild(sp);//添加到舞台 } private function errorHandler(e:Object):void { } 是无法显示图片的   而用JS开发,用JS的事例,却是可以显示的 2017-10-11 添加评论 免费帖 --> 分享 微博 QZO...

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

1267. webgl模式下对Panel组件旋转时Panel子对象显示错误的BUG! [ 54%]

... new PanelRotationTest(Laya.Sprite); testSpriteRotation.pos(300,260); Laya.stage.addChild(testSpriteRotation); var testPanelRotation:PanelRotationTest = new PanelRotationTest(Laya.Panel); testPanelRotation.pos(1000,260); Laya.stage.addChild(testPanelRotation); Laya.Tween.to(testPanelRotation,{rotati...

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

1268. touches一直为undefined [ 54%]

touches一直为undefined Laya.stage.on(Laya.Event.MOUSE_DOWN, this, onCtrlMoveRockerTouchDown); ......   function onCtrlMoveRockerTouchDown(e) {     console.log("onCtrlMoveRockerTouchDown()");     var touches = e.touches;     if(touches) {     ...取出前两个touch进行计算     } }...

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

1269. 人物渲染衣服会部分消失 [ 54%]

...能console出,那个list中的数据也存在,但没渲染出。 Laya.Stage.SCALE_SHOWALL 设置后,空白部分的颜色怎么修改? clearTextureRes无法恢复(另文本纹理释放有bug,经常出现文本渲染混乱) 微信小游戏兼容性bug 部分机型load场景不显示 希...

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

1270. dialog弹出显示问题 [ 54%]

...: 2 人 super1013 • 2018-01-05 15:54 我刚才试了一下,在不 Laya.stage.removeChildren();移除的情况下,重新创建页面添加到场景中是可以的,但是我在跳到别的页面remove的情况下,重新创建页面,再创建dialog,就弹不出来了

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