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

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

611. 在模型有刚体的情况下,怎么才能让模型只围绕一个轴进行旋转 [ 47%]

...tyPlug 1.7.13 导出刚体动画无效 3D模型无法修改scale? 请问下loader如何强制加载一个文件,避免浏览器的缓存 问题状态 最新活动: 2019-01-11 17:15 浏览: 2423 关注: 2 人 源 • 2019-01-11 18:17 清除所有力的效果不好是指什么? 叶子 • 2019-01-...

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

612. 1.7.19.1 beta 背景音乐在舞台失焦和静音状态下可能导致的无法播放的异常问题! [ 47%]

...undMuted)return null; }; var tSound; if (!Browser.onMiniGame){ tSound=Laya.loader.getRes(url); } if (!soundClass)soundClass=SoundManager._soundClass; if (!tSound){ tSound=new soundClass(); tSound.load(url); Loader.cacheRes(url,tSound); }; var channel; channel=tSound.play(startTime,loops); if (!chann...

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

613. ViewStack属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 47%]

...lor = "#ffffff"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个UI实例 this.comp = new ui.ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(this.comp); /...

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

614. 位图切片组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 47%]

...组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load([this.buttonSkin, this.clipSkin, this.bgSkin]).then( ()=>{ this.onSkinLoaded(); } ); } private onSkinLoaded(e: any = null): void { this.showBg(); this.createTimerAnimation(); this.showTotalSeconds(); this.creat...

来源: Laya3.0_文档 发布时间: 20251010

615. ViewStack属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 47%]

...lor = "#ffffff"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("./res/atlas/ui.atlas", Handler.create(this, onLoaded)); } private function onLoaded():void { //创建一个UI实例 comp = new ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(comp); //点击Tab...

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

616. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 47%]

...引擎 Laya.init(500,500); var skins:Array = [ "res/button-1.png" ]; Laya.loader.load(skins, Handler.create(this, onUIAssetsLoaded)); } public function onUIAssetsLoaded():void { var btn:Button = new Button("res/button-1.png"); Laya.stage.addChild(btn); //创建隐藏的file并且把它和按钮对...

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

617. 【简单跑酷--JS版】---Lv.3 添加地板 [ 47%]

...要预加载 上一节有讲到 修改加载的地方 //加载图片 Laya.loader.load(["res/background.png", "res/m_background.png", "res/floor.png"], laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); 首先同样我们到runGame目录新建一个Fl...

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

618. 为什么会出现报错 ani not found:ufo1_down [ 46%]

...添加到舞台 Laya.stage.addChild(this.bg); // 加载图集资源 Laya.loader.load("res/atlas/war.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); })(); function onLoaded(){ // 创建一个主角 this.hero = new Role(); // 初始化角色 this.hero.init("hero",0,1,0,30); // 设置...

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

619. 多线程Worker · LayaAir3.4 · 引擎文档 · LAYABOX [ 45%]

....init(600,400,Laya.WebGL); //设置Laya提供的worker.js路径 Laya.WorkerLoader.workerPath = "libs/worker.js"; //开启worker线程 Laya.WorkerLoader.enable = true; //加载引擎需要的资源 Laya.loader.load("../atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():v...

来源: Laya3.0_文档 发布时间: 20251010

620. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 45%]

...ya.ResourceVersion.FILENAME_VERSION);  function beginLoad(){     Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(null, onLoaded)); }*/  function updateItem(cell, index) { cell.setImg(cell.dataSource); }  function onLoaded(): void {      var rankList = new Laya.List();    ...

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