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

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

411. playSoundplayMusic结束时候有异常抛出 [ 54%]

...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

412. ShaderPass介绍(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 54%]

...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

413. 【laya2.0】加载并且显示图片,并且让该图片居于舞台中央,怎么写? [ 54%]

...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

414. 时间轴动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 54%]

...,执行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

415. 原生Dom交互 · LayaAir3.3 · 引擎文档 · LAYABOX [ 54%]

...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

416. (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 [ 54%]

.../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

417. 使用IDE打包图集工具出来的atlas,调用clearRes无法卸载资源 [ 53%]

...源 加载时时这样调用 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

418. js环境下使用Loader加载图片在Sprite对象的.on函数无效 [ 53%]

...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

419. 在layabox里protobuf只能用回调的方式处理吗? [ 53%]

...ows安装包吗? 请问 3D shader 预编译,需要怎么处理? Laya.Handler.create 回调 load方法的progress回调进的次数太少了。是我哪里设置有问题么 官方技术文档里:微信小游戏进阶处理,AS3,TS,JS并不相同,请问关于AS3的wxlocal白名单文件适...

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

420. 动画加载成功后设置的描点,在电脑上运行正常,打包APK后到手机上运行,描点未生效 [ 53%]

...,描点未生效 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