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

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

1001. 绘制形状时事件不触发 [ 51%]

... function myRing(x,y,r1,color1,r2,color2) {         this.sprite = new Laya.Sprite();     this.sprite.on('mousedown', this, on_down);     this.sprite.graphics.drawCircle(x, y, r2, color2, color2, 2);     this.sprite.graphics.drawCircle(x, y, r1, color1, color1, 0);     function on_down(e...

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

1002. 为什么new不出Rectangle的类,提示not defined [ 51%]

为什么new不出Rectangle的类,提示not defined laya.core.js也引入了啊 2018-06-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 5 个回复 Laya_Aaron 赞同来自: 环境确定是好的?可以new 的啊 2018-0...

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

1003. 【分享】圆形进度条上图片跟随进度并旋转角度 [ 51%]

...好最近做到这一块,就分享给大家。  //首先是加载资源 Laya.loader.load(atlas, Handler.create(this, this.onLoaded), Handler.create(this, this.onLoading, null, false));      /** * 加载资源进度 * @param percent 百分比 */ private onLoading(percent: number): void { this.v...

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

1004. 使用IDE制作的动画在pc模拟器播放OK在手机端不显示 [ 51%]

...c模拟器播放OK在手机端不显示 loaded : function(){ this.loader = Laya.loader; this.loader.retryNum = 0;//无加载重试 this.urls = ['imgdebris/imgdebris.atlas','imgdebris/p1_slj.png',]; // this.loader.load(this.urls[0], Laya.Handler.create(this, this.onAssetloaded)); this.loader.load(thi...

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

1005. LayaAir IDE 1.8.5发布vivo小游戏Laya.loader.load()方法加载音乐文件出现问题 [ 51%]

LayaAir IDE 1.8.5发布vivo小游戏Laya.loader.load()方法加载音乐文件出现问题 项目:LayaAir IDE 1.8.5新建项目(测试) 问题:在项目中使用Laya.loader.load()方法进行文件预加载,加载音乐文件(.mp3格式),在Laya编辑器上按F5调试项目...

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

1006. spine 播放错乱 [ 51%]

spine 播放错乱 templet: Laya.SpineTemplet; skeleton: Laya.SpineSkeleton; index = 0; private startFun(): void { //创建动画模板 this.templet = new Laya.SpineTemplet(); this.templet.loadAni("spine/10101001.json"); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.o...

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

1007. Laya3.0正式版spine3.8的动画资源不能正常显示 [ 51%]

Laya3.0正式版spine3.8的动画资源不能正常显示 代码直接搬的api示例,警告和错误信息如下,但是引擎的示例工程又是可以,本来怀疑是因为引擎版本升级问题,我又重新新建了一个空的新工程,一样的资源,一样的代码,还是一...

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

1008. npm install layacmd -g之错 [ 51%]

npm install layacmd -g之错 c:\Users\qykings\Documents\h5work\layaGame\trunk>npm install layacmd -g npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\ node_modules\\npm\\bin\\npm-cli.js" "install" "layacmd" "-g" npm ERR! node v6.10.2 np...

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

1009. 手机闪退,提示:JCTexture::freeGLResource thread error [ 50%]

...。请问这可能是什么问题? 21302-16 22:30:46.718 16366 16366 W LayaBox : JCTexture::freeGLResource thread error 21402-16 22:30:46.718 16366 16366 E libEGL : call to OpenGL ES API with no current context (logged once per thread) 21502-16 22:30:46.718 16366 16366 W LayaBox : JCTexture::freeG...

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

1010. 调用创建微信授权按钮时,授权按钮有时候显示有时候不显示 [ 50%]

...时,授权按钮有时候显示有时候不显示 在同一手机上,laya调用创建微信授权按钮,代码执行了没有异常情况,有时候表示授权按钮,有时候不显示,以下是我创建按钮代码 var button:Object = wx.createUserInfoButton(             { ...

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