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

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

2051. 有没方法可以读到图集里面的文件大小信息? [ 52%]

... qian 赞同来自: http://layaair.ldc.layabox.com/api/?category=Core&class=laya.ui.Image 看api 2018-01-29 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 layafans 相关问题 两个对象new了一个相同的对象,调用第一...

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

2052. SVG渐变精灵的扩展脚本继承了多个精灵, 在safari环境下重叠了渲染 [ 52%]

..., 求大大指点, 感激   附上渐变SVG文字的代码:   /** * this class is a extension of texts with gradient color  */ var effect; (function (effect) {     var GradientText = (function (_super) {         const style = {             DEFAULT: "default",             VERTICA...

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

2053. list 每次滑动,都是可以滑动一点点,可不可以如何设置,让他每次滑动,只能固定的值。 [ 52%]

...看相关APIhttp://layaair.ldc.layabox.com/api/index.html?category=UI&class=laya.ui.ScrollBar    scrollSize : Number 获取或设置一个值,该值表示按下滚动条轨道时页面滚动的增量。    value : Number 获取或设置表示当前滚动位置的数字。  2017-04-11 2 ...

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

2054. 怎么集成导入mqtt.js到laya中 [ 52%]

...我调用的时候使用的是d.ts文件,在ts文件中能正常调用 class Mqtt { private client: Paho.MQTT.Client; private message: Paho.MQTT.Message; private self = this; public constructor() { public connect(url, port, client): void { //初始化 this.client = new Paho.MQTT.Client(url, Number...

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

2055. 使用了destroy()之后,还需要手动移除侦听事件和引用吗? [ 52%]

...说的很详细:https://layaair.ldc.layabox.com/api/?category=Core&class=laya.display.Node 下边两个文档可以先看AS里边的,js和ts缺少的后续我们会补充上。谢谢反馈 2017-09-14 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请...

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

2056. 项目启动入口说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 52%]

...同启动入口的需求。 (图1-6) 插件代码如下: //PlayButton.ts class PlayButton { @IEditor.onLoad addPackButton() { //添加运行预览的播放按钮 let playControls = gui.GRoot.inst.getChildByPath("MainView.topButtons.playControlls.Box"); let btn = playControls.getChild("packUI"); //...

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

2057. 进入后台后的网络问题 [ 52%]

...入前台,这个有事件或者回调吗? 看了安卓的,LayaConch5.class file:///C:\Users\Administrator.DESKTOP-AM0RTMG\AppData\Roaming\Tencent\Users\315617576\QQ\WinTemp\RichOle\`I{H_$7(]}RY}87O[N@@{VW.png 在js、as代码里如何侦听到? 2017-06-21 0 0 分享 微博 QZONE 微信 Monic...

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

2058. 照着官方文档写的 Dialog 报错? [ 52%]

...Area = "0,0," + bgImg.width + "," + bgImg.height; dialog.show(); }; } Laya.class(LoadResource, "LoadResource", null);照着官方文档实例, 写了一个显示 Dialog 代码, 怎么显示不出来?而且F12里输出报错: Uncaught TypeError: Cannot read property 'visible' of undefined   ...

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

2059. 多重遮罩显示异常 [ 52%]

...,要么显示一部分或者消失,测试代码如下 export default class ClipView extends Laya.Sprite { constructor() { super(); this.init(); } init() { let bg = new Laya.Sprite(); bg.graphics.drawRect(0, 0, 500, 500, '#aaa'); this.addChild(bg); this.panel = new Laya.Panel(); this.panel.width ...

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

2060. popup设置了关闭效果后,窗口关闭但遮罩层没有关掉,请问如何处理 [ 52%]

...            }   import { ui } from "./ui/layaMaxUI"; export default class ShopDialog extends ui.ShopDialogUI { constructor() { super(); this.popupEffect = Laya.Handler.create(this, this.showEffect); this.closeEffect = Laya.Handler.create(this, this.hideEffect); this.btnClose.on(Laya.Event.CLI...

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