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

大约有 3,008 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0056 秒)

2041. (canvas.toDataURL)在安卓机上base64图片的色差问题 [ 52%]

...mage/png");     H5中代码: <img src="base64:xxxxxxxxxxxxx" alt="" class="work-img">     附件: 图1(苹果、PC机):     图2(安卓机):   附件 : --> 2018-07-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

2042. 如何在IOS和Android中调用AS 类实例的方法 [ 52%]

...iOS中通过调用 [[conchRuntime GetIOSConchRuntime] callMethod:jsObjId className:@"platform.PlatformAPI" methodName:methodName param:strValue], 运行时候报    reflection error : can not find class [platform.PlatformAPI]. 不知道原因。 className试了"PlatformAPI",也不可以   同时...

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

2043. 有没方法可以读到图集里面的文件大小信息? [ 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

2044. 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

2045. 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

2046. 怎么集成导入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

2047. 使用了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

2048. 进入后台后的网络问题 [ 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

2049. 照着官方文档写的 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

2050. 多重遮罩显示异常 [ 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