大约有 20 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0036 秒)
...本,在Laya1.0中生效,在Laya2.0中不生效 laya中代码:export default class Test { public static onClick():void{ alert("123456"); } public static onClick1():void{ } } 原生中代码:ConchJNI.RunJS("Test.onClick()"); 原生中报错:...
来源: Laya_社区 发布时间: 20190313
... /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ES...
来源: Laya_社区 发布时间: 20190408
...就是ios有问题。代码如下:附件是两个音频文件 export default class GameMain extends Laya.Scene { constructor() { super(); //设置单例的引用方式,方便其他类引用 GameMain.instance = this; ...
来源: Laya_社区 发布时间: 20200925
...果官方文档(链接)中有明确提示 requestData参数: The default value is nil. If requestData is not nil, your payment request will be rejected. --默认值为nil,如果requestData不是nil,您的支付请求将被拒绝。 目前我的解决方法是注释掉payment.requestData ...
来源: Laya_社区 发布时间: 20190510
...unction.(In "this._nativeObj.addGlobal ValueDefine(modifyType, type, size, defaultData)", "this._nativeObj.addGlobalValueDefine" is undefined)] at line 4664. 附件 : --> 2020-02-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...
来源: Laya_社区 发布时间: 20200218
...中输入chrome://flags/#autoplay-policy 然后在高亮的选项中,将Default 换成No user gesture is required 操作步骤参照截图 2018-05-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 ...
来源: Laya_社区 发布时间: 20180509
...但vscode报未定义,IDE F8编译时也不通过 代码: export default class Index extends Laya.Script { /* @prop {name: speed, tips: "速度", type: Number, default: 10} */ constructor() { super(); } onAwake() { ...
来源: Laya_社区 发布时间: 20191227
...中输入chrome://flags/#autoplay-policy 然后在高亮的选项中,将Default 换成No user gesture is required 操作步骤参照截图 2018-05-15 2 0 分享 微博 QZONE 微信 w1114367261 赞同来自: 你缺少手势安全确定!就是浏览器的安全限制,必须有用户...
来源: Laya_社区 发布时间: 20180509
...nts a variable, not a function Warning: D3D shader compilation failed with default flags. (ps_5_0) Retrying with skip validation C:\fakepath(596,34-81): error X3005: '_webgl_42c649225184485b': identifier represents a variable, not a function Warning: D3D shader compilation failed with skip validat...
来源: Laya_社区 发布时间: 20200226
...Canvas转出图片与游戏内显示颜色差距过大 测试代码 export default class TestView { constructor() { this.init(); } init() { Laya.stage.bgColor='#ffffff'; Laya.stage.addChild(new Laya.Image('comp/img/img1.png')); Laya.t...
来源: Laya_社区 发布时间: 20230419