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

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

161. 为何发生此类报错Uncaught TypeError: Cannot read property '_tf' of null [ 72%]

...ar Stage=Laya.Stage; var WebGL=Laya.WebGL; var config=Config; (function(){ console.log("运行程序。"); Laya.init(1280,720,WebGL); //设置适配模式 Laya.stage.alignH=Stage.ALIGN_CENTER; Laya.stage.alignV=Stage.ALIGN_MIDDLE; Laya.stage.scaleMode="showall"; Laya.Stat.show(); //设置屏幕为...

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

162. Laya.Script的派生类的_update函数不工作? [ 72%]

...但是_update函数中的log没有打印 _update(state:Laya.RenderState) { console.log("state:", state.elapsedTime); } 请问,是我的打开方式有问题吗?   谢谢! 2018-06-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

163. 版本号:2.0.2 beta, 在sound文件夹下音乐播放不了,放入到res文件夹下可播放 [ 72%]

...tring:string = "./sounds/hit.wav";  private onPlayMusic(e: Event): void { console.log("播放音乐"); SoundManager.playMusic(this.musicString, 1, new Handler(this, this.onComplete)); }  private onPlaySound(e: Event): void { console.log("播放音效"); SoundManager.playSound(this.soundString, 1, ...

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

164. 请问如何在Laya中调用微信小游戏game.js中自定义函数? [ 72%]

...到解决   在game.js中声明函数如下 window["sss"] = function () { console.log(123123123) };  在laya中AS的调用代码如下 __JS__("sss()")   即可实现 2020-02-27 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Bolin 相...

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

165. Laya.Pool.getItemByClass 找不到上次释放的对象 [ 72%]

...nd= Laya.Pool.getItemByClass("mybg",BackGround); Laya.stage.addChild(bg1); console.log("bg1->",bg1); //对象放回Pool里,并清除对象 Laya.Pool.recover("mybg",BackGround); bg1.removeSelf(); Laya.stage.removeChild(bg1); console.log("bg1->",bg1); //再次从Pool里获取对象的时候,...

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

166. 技术文档3D部分资源在哪里能找到就是这个LayaScene_01/loveScene.ls [ 72%]

...有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 编辑了图片 执行代码说加载不出来资源 这个是怎么回事? laya无法解析部分属性 急!!!Layacmd没有导出资源 问题状态 ...

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

167. 在线急等,发现你们这个编译器一个bug,不能实现负负得正 [ 72%]

...moveDownBall = function(){ this.ball.x -= this.vx; this.ball.y += this.vy; console.log("111111"); this.vy *= 0.99; this.vy += 0.25; console.log("222222"); if (this.ball.y + this.vy >= this.stageHeight ||this.ball.y + this.vy <= 0) { this.vy = -this.vy; } if (this.ball.x + this.vx >= this.st...

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

168. 关于使用CryptoJS加解密的问题。 [ 72%]

..._('var md5 = CryptoJS.MD5("Message").toString(CryptoJS.enc.Hex)'); __JS__('console.log("md5 = %s", md5)'); 2017-01-16 0 0 分享 微博 QZONE 微信 youhong168 赞同来自: 我是TS的项目。这是工程包。还是不行,能帮忙看看是哪里出问题了么? CryptoTest.zip 2017-01-16 0 1 ...

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

169. 在Unity中设置动画事件(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 71%]

...mationEvent的动画事件函数,名字是可以对应上的 ShowMsg() { console.log("ShowMsg"); this.showMsgFunc && this.showMsgFunc(); } } ``` 在加载好场景之后,我们将我们创建的这个脚本添加给cube。 ```typescript //加载场景 Laya.Scene3D.load("res/threeDimen/scene/Laya...

来源: Laya2.0_文档 发布时间: 20210715

170. worker.js 使用问题 [ 71%]

...    break ;                 }             console.log("load:",data.url);         }         this.event(data.url,bitmap);     } 2019-04-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 z...

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