大约有 520 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0060 秒)
...der.load("res/music/Music_start.mp3", Laya.Handler.create(this, this.onLoadFinished)); } onLoadFinished() { Laya.SoundManager.playMusic("res/music/Music_start.mp3", 1); } } new GameMain(); ----------------------------------------...
来源: Laya_社区 发布时间: 20170105
...men/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", Laya.Handler.create(this, function(mesh) { var layaMonkey = scene.addChild(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071...
来源: Laya2.0_文档 发布时间: 20210715
...te(); Laya.stage.addChild(logo); logo.loadImage("res/atlas/test.png", Laya.Handler.create(this, function(){ console.log("complete!!"); logo.x= Laya.stage.width/2-logo.width/2; logo.y= Laya.stage.height/2-logo.height/2; //logo.pos(Laya.stage.width/2-logo.width/2,Laya.stage.height/2-logo.height/2); })...
来源: Laya_社区 发布时间: 20181010
...,执行onLoaded回调方法 Laya.loader.load("res/atlas/ui.atlas", Laya.Handler.create(this, onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```javascript //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("TimeLine.ani"); ``` ...
来源: Laya2.0_文档 发布时间: 20210715
...x.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,this.clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); 编译运行上面的代码,然后点击舞台可以看到,二维码已经显示到了舞台上,可以用手机扫下,发现手机已经...
来源: Laya3.0_文档 发布时间: 20251010
.../Conventional/JJF.lh"}]; Laya.loader.create(resource, Laya.Handler.create(this, this.onComplete)); } onComplete(){ //创建场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //创建相机 var camera = new Laya.Camera(0, 0.1, 1...
来源: Laya_社区 发布时间: 20190605
...源 加载时时这样调用 Laya.loader.load("res/MainBlood.atlas", Laya.Handler.create(this, this.onAtlasLoaded), null, Laya.Loader.ATLAS); 卸载时这样 Laya.loader.clearRes("res/MainBlood.atlas");在Laya.Loader.loadedMap里查找是没有了,但是统计面板的CurMem降不下来,工程...
来源: Laya_社区 发布时间: 20180305
...nglei999 赞同来自: var Loader = Laya.Loader; var loaderHandler = Laya.Handler; var scronw=640; var scronh=960; //初始化展示界面 Laya.init(scronw, scronh) //设置舞台背景色 Laya.stage.bgColor = '#999999'; //设置适配模式 Laya.stage.scaleMod...
来源: Laya_社区 发布时间: 20171024
...ows安装包吗? 请问 3D shader 预编译,需要怎么处理? Laya.Handler.create 回调 load方法的progress回调进的次数太少了。是我哪里设置有问题么 官方技术文档里:微信小游戏进阶处理,AS3,TS,JS并不相同,请问关于AS3的wxlocal白名单文件适...
来源: Laya_社区 发布时间: 20171103
...,描点未生效 if(anin==null)anin=new Animation(); anin.loadAtlas(url,Handler.create(this,onloaded),url); anin.autoSize=true; anin.autoPlay=false; anin.interval=interval; private function onloaded():void { anin.pivotX=anin.getBounds().width/2; anin.pivotY=anin.getBounds().height/2; } 如...
来源: Laya_社区 发布时间: 20180806