大约有 596 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0073 秒)
...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
...但是_update函数中的log没有打印 _update(state:Laya.RenderState) { console.log("state:", state.elapsedTime); } 请问,是我的打开方式有问题吗? 谢谢! 2018-06-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...
来源: Laya_社区 发布时间: 20180614
...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
...到解决 在game.js中声明函数如下 window["sss"] = function () { console.log(123123123) }; 在laya中AS的调用代码如下 __JS__("sss()") 即可实现 2020-02-27 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Bolin 相...
来源: Laya_社区 发布时间: 20200227
...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
...有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 编辑了图片 执行代码说加载不出来资源 这个是怎么回事? laya无法解析部分属性 急!!!Layacmd没有导出资源 问题状态 ...
来源: Laya_社区 发布时间: 20170823
...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
..._('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
...mationEvent的动画事件函数,名字是可以对应上的 ShowMsg() { console.log("ShowMsg"); this.showMsgFunc && this.showMsgFunc(); } } ``` 在加载好场景之后,我们将我们创建的这个脚本添加给cube。 ```typescript //加载场景 Laya.Scene3D.load("res/threeDimen/scene/Laya...
来源: Laya2.0_文档 发布时间: 20210715
... break ; } console.log("load:",data.url); } this.event(data.url,bitmap); } 2019-04-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 z...
来源: Laya_社区 发布时间: 20171120