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

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

631. 请问laya的List除了用selectBox,还有什么方式可以自定义列表项选中状态下的表现吗 [ 74%]

...ui/"+i+".png",isSelect:false}); } my_list.array=data; my_list.selectEnable=true; my_list.selectHandler=new Handler(this,onSlectHandler); my_list.renderHandler=new Handler(this,onRenderHandler); } private function onRenderHandler(cell:Box,index:int):void { var img:Image=cell.getChildByName("img")as I...

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

632. 图集打包后使用Texture不显示啊 [ 74%]

...: 300 }, "sourceSize": { "w": 300, "h": 300 }, "rotated": false, "trimed": true }, "sg2.png": { "frame": { "x": 302, "y": 0, "w": 290, "h": 300, "idx": 0 }, "spriteSourceSize": { "x": 10, "y": 0, "w": 290, "h": 300 }, "sourceSize": { "w": 300, "h": 300 }, "rotated": false, "trimed": true }, "sg3.png...

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

633. laya.ui.View_API3.0 [ 74%]

...变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from Text.hitTestPrior Defined in laya/display/Sprite.ts:273 指定鼠标事件检测...

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

634. laya.d3.component.AnimatorControllerLayer [ 74%]

... : String 层的名称。AnimatorControllerLayer  playOnWake : Boolean = true 激活时是否自动播放AnimatorControllerLayerPublic Methods  MethodDefined By  AnimatorControllerLayer(name:String) 创建一个 AnimatorControllerLayer 实例。 AnimatorControllerLayer  clone():* 克隆。 An...

来源: Laya2.0_api 发布时间: 20190513

635. 列表组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 74%]

...llBarSkin = "";//隐藏列表的滚动条皮肤 this.list.elasticEnabled = true;//设置橡皮筋为ture this.list.scrollBar.elasticBackTime = 200;//设置橡皮筋回弹时间。单位为毫秒 this.list.scrollBar.elasticDistance = 50;//设置橡皮筋极限距离 // this.list.scrollBar.autoHide = ...

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

636. 微信小游戏里面开放数据域的资源加载问题 [ 74%]

...来自: 我也遇到过这个问题 主域里边要写Laya.MiniAdpter.init(true) 子域里边要写Laya.MiniAdpter.init(true, true) 这样解决了,你可以试试。 2018-06-29 0 2 分享 微博 QZONE 微信 158*****395 赞同来自: 解决了吗,我也遇到了,  2018-07-18 0 0 分享 微博 QZ...

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

637. 三个图好像无法绑定不同的事件? [ 74%]

...题的!赏金给我吧 var img1:Sprite = new Sprite; img1.mouseThrough = true; img1.loadImage('https://layaair.ldc.layabox.com/demo/h5/res/apes/monkey2.png', 100, 100, 90, 90); Laya.stage.addChild(img1);   img1.on(Laya.Event.CLICK, this, function(name) { console.log(name); }, ['图1']);   var im...

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

638. 计时器-延迟调用 [ 74%]

...一次"; text.size(Laya.stage.width, Laya.stage.height); text.wordWrap = true; text.valign = "middle"; text.align = "center"; Laya.stage.addChild(text); } } new Timer_CallLater();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebG...

来源: Laya2.0_示例 发布时间: 20260303

639. laya.d3.animation.AnimationClip_API3.0 [ 74%]

...esource.lock Defined in laya/resource/Resource.ts:103 是否加锁,如果true为不能使用自动释放机制。 Optional name name: string Inherited from Resource.name Defined in laya/resource/Resource.ts:105 名称。 url url: string Inherited from Resource.url Defined in laya/resource/Resource...

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

640. laya.d3.core.light.LightSprite_API3.0 [ 74%]

...s:310 inheritdoc override Parameters Default value destroyChild: boolean = true Returns void destroyChildren destroyChildren(): void Inherited from Node.destroyChildren Defined in laya/display/Node.ts:211 销毁所有子对象,不销毁自己本身。 Returns void event event(type: string, data?: ...

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