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

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

11. Tree属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 94%]

..., 300); tree.x = (Laya.stage.width - tree.width) / 2; tree.y = (Laya.stage.height - tree.height) / 2; Laya.stage.addChild(tree); } } } import Box = Laya.Box; import Clip = Laya.Clip; // 此类对应的json对象: // {"child": [{"type": "Clip", "props": {"x": "13", "y": "0", "left": "12", "height":...

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

12. 关于组件监听事件 [ 94%]

...n 赞同来自: 影响对象鼠标事件响应区域的属性为:width、height、hitArea,优先级顺序为:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height 2018-05-26 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无...

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

13. Tree属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 93%]

...位置 tree.x = (Laya.stage.width - tree.width) / 2; tree.y = (Laya.stage.height - tree.height) / 2; //加载到舞台 Laya.stage.addChild(tree); } } } import laya.ui.Box; import laya.ui.Clip; import laya.ui.Label; // IDE中生成的此类对应的json对象,在此作为参考,对应树形结构...

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

14. 真机测试时 有3d模型的界面尺寸就会错乱 [ 92%]

...modelPnl.localToGlobal(new Laya.Point(this._modelPnl.width, this._modelPnl.height))         let w = x2 - x         let h = y2 - y         let bounds = new Laya.Rectangle(x, y, w, h)          let view = new ModelView(bounds, 130, 6, 65)         this._modelPnl.addCh...

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

15. laya.physics.BoxCollider [ 91%]

...值范围0-1,值越大,摩擦越大,默认值为0.2ColliderBase  height : Number矩形高度BoxCollider id : int[read-only] 获取唯一标识ID。 Component isSensor : Boolean是否是传感器,传感器能够触发碰撞事件,但不会产生碰撞反应ColliderBase isSingleton : Bo...

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

16. LayaAir 2.0 微信排行榜 离屏画布不能直接附加到组件纹理上 [ 91%]

...kList.graphics.drawTexture(texture, 0, 0, sharedCanvas.width, sharedCanvas.height); 2018-10-02 0 10 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 淡淡的疯 相关问题 微信关系链:LayaAir引擎针对微...

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

17. UI弹窗 · LayaAir3.0文档 · LAYABOX [ 91%]

...绍 (图5) 属性 功能 dragarea 拖动区域(格式:x,y,width,height),默认值为"0,0,0,0"。 ismodal 是否是模式窗口,默认为不开启状态。 isshoweffect 是否显示弹出效果,默认为开启状态。 ispopupcenter 指定对话框是否居中弹出,默认为开...

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

18. HtmlDiv组件问题 [ 90%]

...的设置,只支持水平居中,垂直居中建议你可以让(image.height-html.height)/2替代设置 2017-01-07 0 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 jthy1234 相关问题 发起问题须知,必看!!!不按提...

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

19. 请问如何让list组件自动适应内容高度,不产生滚动 [ 90%]

... cuixueying 赞同来自: 你自己设置list的宽高就可以了,list.height=list.repeatY*Item.height,每次修改条目数的时候,你都去重置下list的高度即可! 2017-06-27 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人...

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

20. Native(android)下创建二维码并显示在页面上 [ 89%]

...oidplat,创建二维码     createQrCode(url:string, width:number, height:number):string {         return this._bridge.call("createQrCode", url, width, height);     }     // 以下android代码 // JSBridge.javapublic static String createQrCode(final String content, final d...

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