大约有 1,315 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0099 秒)
Laya_社区(1126) Laya3.0_文档(60) Laya2.0_文档(59) Laya2.0_示例(27) Laya_示例(24) Laya3.0_api(17) laya_api(1) Laya2.0_api(1)
...c preLoadPublicAssets(){ this.sAssetList = Loader.getRes("file_list.json") Laya.loader.load("res/ui/share@atlas0.png", Handler.create(this, this.onLoaded), null, Loader.IMAGE, 1, true, null, true) } static onLoaded(res){ console.log("public assets inited !!!!") console.log(Laya.loader.getRes("res/ui...
来源: Laya_社区 发布时间: 20180609
...构中没有子父级关系的情况下连接两个对象的运动。 **在LayaAir中使用FixedConstraint** - 1.创建两个刚体 ```typescript //创建盒型MeshSprite3D var box: MeshSprite3D = (this.scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1)))); //设置材质 var transform...
来源: Laya2.0_文档 发布时间: 20210715
...构中没有子父级关系的情况下连接两个对象的运动。 **在LayaAir中使用FixedConstraint** - 1.创建两个刚体 ```typescript //创建盒型MeshSprite3D var box: MeshSprite3D = (this.scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1)))); //设置材质 var transform...
来源: Laya2.0_文档 发布时间: 20210715
...放不了 private var oriDBArr:Array = null;//位图源 var tex:Texture = Laya.loader.getRes(_url); for (var i:int = 0; i < list1["oriBDPos"].length; i++ ) { var g:Graphics = new Graphics(); var t:Texture = Texture.createFromTexture(tex, posObj.x, posObj.y, posObj.w, posObj.h); g.drawTexture(t, 0...
来源: Laya_社区 发布时间: 20170224
...有声音的问题修复 webAudioSoundChannel play方法修改 _proto = Laya.WebAudioSoundChannel.prototype; /** *播放声音 */ _proto.play = function () { // if (this.url.indexOf("music.d") != -1) { // console.log("play", this.url) // console.trace("play", this.url) // } Laya.SoundManager.addCh...
来源: Laya_社区 发布时间: 20201014
...闭一个定时器,请问我该怎么写呢? 假设有这两个定时器 Laya.timer.loop(100, this,update); Laya.timer.loop(1000,this,shoot_boss); 我希望关闭第二个定时器,该如何使用clear呢? 谢谢。 2016-07-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20160718
...把若干个文件压缩成一个zip,下载通过JSZip解压后,如何用Laya.loader再去初始化呢? let zip = new JSZip(); 我的需求是这样,比如有个界面,aa.scene,如果我提前通过Laya.loaer 加载了这个aa.scene,Laya.loader里面已经有了缓存,之后再open时...
来源: Laya_社区 发布时间: 20190425
Laya 2.7.0beta Scene与脚本的onAwake()与onEnable()调用时机存在问题 官方2D实例, 在TestScene的GameControl脚本后面下分别拖拽了两个新的脚本: Ascript 与 Bscript , 在两者其中的onAwake与onEnable方法中打印log , 并在GameUI类中也进行log打印. 在2.0-2.4...
来源: Laya_社区 发布时间: 20200709
...出场景,只有maincamera 和light,所有代码如下 import Handler=laya.utils.Handler; import Loader=laya.net.Loader; // 程序入口 class GameMain { constructor() { Laya.init(600, 400); Laya.stage.scaleMode = Laya.Stage.SCALE_EXACTFIT; Laya.stage.screenMode = Laya.Stage.SCREEN_VERTICAL; Lay...
来源: Laya_社区 发布时间: 20171227
[LayaAir2]Laya2.x对于支付宝小游戏得支持 无论Laya.loader.loadPackage(),还是my.loadSubpackage()全部在2.X上歇菜了,只要不分包"subpackages": [{"name": "XX", "root": "XX/" }],不走分包逻辑,小游戏就能正常进入loading场景,否则就直接卡在logo界面,m...
来源: Laya_社区 发布时间: 20240914