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

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

1361. 自己创建的box作为tab,为啥没有点击事件啊? [ 56%]

...BootClass", MyPage2UI);     var UI = new MyBootClass();     Laya.stage.addChild(UI); } function MyBoot() {     MyBoot.super(this);     this.MyTab.selectHandler = new Laya.Handler(this, onSelect, null, false);//设置 tab 的选择项发生改变时执行的处理器。     console.log("A1...

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

1362. dialog.removeSelf is not a function [ 56%]

...is.preinitialize is not a function 官方视频教程中飞机大战 "this.addChild is not a function" 微信开发者工具iOS模拟器报错:CharRender_Canvas.ctx.fillAndStrokeText is not a function 问题状态 最新活动: 2017-04-18 19:37 浏览: 1625 关注: 2 人 136*****931 • 2017-04-19...

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

1363. laya.display.Node_API3.0 [ 56%]

...is3D numChildren parent scene timer url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents ...

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

1364. 调用时间轴动画丢失皮肤问题? [ 56%]

...件 tl.loadAnimation("XXXXX1.ani"); //添加到舞台 Laya.stage.addChild(tl); //播放Animation动画 tl.play(); qian • 2018-03-29 15:51 你传一下demo吧我看看 haisenshushu • 2018-03-29 15:57 怎么传啊?打包在哪里发给你呢@qian: qian • 2018-03-29 16:23 压缩然后...

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

1365. 关于list滚动位置的问题 [ 56%]

...++){ data.push({m_label:"No."+m}); } mDemoUi.m_list.array=data; Laya.stage.addChild(mDemoUi); ... private function onChange():void{ trace("list index= "+mDemoUi.m_list.scrollBar.value); mDemoUi.valueLab.text="滚动条位置value= "+mDemoUi.m_list.scrollBar.value; }  如上所示,给list组件创...

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

1366. 为啥我克隆的对象,动画会相互影响 [ 56%]

...       _shouAry[0] = myClone;                 _shouLayer.addChild(myClone);                     /////////////左手                 var cloneShou:MeshSprite3D;                 cloneShou = _shou.clone()                 var leftAmn:Sk...

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

1367. new Laya.Sprite();绘制图形以后,怎么删除释放资源? [ 56%]

...后,怎么删除释放资源? var sp = new Laya.Sprite(); Laya.stage.addChild(sp); sp.graphics.drawPie(0,0,50,0,160,"#122D3E");   绘制完成以后,我怎么从舞台删除绘制的图形和释放Sprite相关资源? clear和removeChild???具体怎么操作?   2017-11-19 添加评...

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

1368. 请问Laya如果获取Laya.Event.CLICK时间的点击坐标? [ 56%]

...0 ); clickRect.size( Laya.stage.width, Laya.stage.height-100 ); Laya.stage.addChild( clickRect ); clickRect.on( Laya.Event.CLICK, this, changeVxVy ); } function changeVxVy( e ){ console.log( e.nativeEvent.offsetX ); console.log( e.nativeEvent.offsetY ); }   我设置了一个矩形,并给这个...

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

1369. 输入键盘收起时页面没有下移 [ 56%]

...内存吗?页面的时间轴动画会跟着被清空吗? 用Laya.stage.addChild(new testUI());后,原来让页面还在运行 问题状态 最新活动: 2018-12-21 15:55 浏览: 2206 关注: 2 人 layali • 2018-12-21 16:28 版本1.7.22,手机系统ios12.1,微信环境下。不是直接...

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

1370. 在sprite中设置spirte为mask,设置的mask的坐标点是基于哪个坐标定位的 [ 56%]

...相对于遮罩对象的,比如代码 var ape = new Sprite(); Laya.stage.addChild(ape); ape.loadImage("../../res/apes/monkey3.png"); ape.pos(400,400); var sprite2 = new laya.display.Sprite(); sprite2.graphics.drawRect(0,0,50,50,"#fff9900"); ape.mask = sprite2;   你可以看下效果   2017-12-2...

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