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

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

921. 给Dictionary添加个长度 [ 64%]

...ndex:int = _keys.indexOf(key); if (index >= 0) return index; key = (key is String) ? Number(key) : ((key is Number) ? key.toString() : key); return _keys.indexOf(key); } /** * 返回指定键名的值。 * @param key 键名对象。 * @return 指定键名的值。 */ public function get(key:*):* ...

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

922. Error: 代码包大小为 5533 kb,上限为 4096 kb,请删除文件后重试? [ 64%]

... { constructor() { console.log(Laya.Browser.width, Laya.Browser.height); this.current = { x: 0, y: Laya.Browser.height }; // Laya.stage.bgColor = "#3F51B5"; this.sp = new Laya.Sprite(); Laya.stage.addChild(this.sp); } render() { console.log("render"); var l = [ 0, 0, 0, -(Laya.Browser.height >&gt...

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

923. tween complete 报错 以及如何判断对象正在缓动中 [ 64%]

...断对象是否正在缓动中的API,你可以自己定义个变量比如isComplete,默认值为true,当该变量为false时,表示处在缓动中,则调用complete(),否则调用to方法同时将该变量设为false,在缓动完成回调函数中将该值设为true。 注意complete()...

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

924. [LayaAirIDE 3.0]更新LayaAir 3.1.0-beta.1后编译不了 [ 64%]

...aya.core.js:1 Failed to load internal/sky.jpg: ReferenceError: ImageBitmap is not defined     at http://127.0.0.1:24647/game/li ... 14785     at async Promise.all (index 0)     at async Promise.all (index 0) warn @ laya.core.js:1 warnFailed @ laya.core.js:1 (anonymous) @ laya.core.js:1 Promise...

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

925. 微信小游戏引用spine-core-3.8.js报错 [ 64%]

...pservice 生成错误] libs/spine-core-3.8.js: libs/spine-core-3.8.js file is not in UTF-8 encoding(env: Windows,mg,1.05.2204264; lib: 2.17.0)   VM84 WAGame.js:2 Error: module "libs/spine-core-3.8.js" is not defined     at require (VM97 WAGameSubContext.js:2)     at a (VM97 WAGameSubContext.j...

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

926. laya.timer.clear这个定时器的回调函数到底怎么用啊?模拟器上不报错,真机运行会抱着个错 [ 64%]

..., 要清理的定时器监回调方法(looppp)) Laya.timer.loop(100,this,looppp); 清理定时器是支持的哦!你看看你的清理是不是导致了你的代码错误! 2018-05-08 0 2 分享 微博 QZONE 微信 bbh 赞同来自: 模拟器上都没问题,就手机I上报了个错误   2...

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

927. layacmd安装失败 [ 64%]

...ode.js\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "layacmd" "--registry=https://registry.npm.taobao.org" 5902 verbose node v8.9.2 5903 verbose npm  v5.5.1 5904 error code ELIFECYCLE 5905 error errno 1 5906 error electron@1.7.9 postinstall: `node install.js` 5906 error Exit status 1 5907 er...

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

928. 1.7版本要初始化后有些代码才能用了 [ 64%]

...html> <script> "use strict"; var test = {}; test.text = new laya.display.Text(); // in this line is error , so you can't defined class before "Laya.init" Laya.init(800,600); //test.text = new laya.display.Text(); // in this line is right test.text.text = "dsafdsdsada"; test.text.color = "#f...

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

929. laya支持的发布模式有哪些? [ 64%]

...带附件】 使用Laya2.0.0beta5.1 发布官方示例 真机报错 window is not defined laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 如何通过命令行工具构建和发布项目 2.2.0beta4 发布微信小游戏,安卓设备加载场...

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

930. layaAir2.0动效模板报错Uncaught Can not find class ui.aniTemplates.bigToSmallUI [ 64%]

...带附件】 使用Laya2.0.0beta5.1 发布官方示例 真机报错 window is not defined ide 2.4 layaair2-cmd 编译报错 laya2.0加载3d场景报错Uncaught TypeError: Cannot read property 'btCollisionObject' of undefined 自定义场景类导出layaMaxUI.ts有前缀导致报错 mac 用layaair2.0...

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