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

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

331. Property 'GraphicAnimation' does not exist on type 'typeof display'. [ 75%]

...ct' of undefined 2.0.0编译报错Cannot find global type 'Array' Warning!,this class[MiniAdpter] already exist: Object {init: } Uncaught TypeError: Cannot read property 'props' of undefined 关于@prop {name:Tab,type:Node} 我觉得好麻烦啊 ,请问一下有别的方法吗 鼠标自定义样...

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

332. [LayaAirIDE3]xcode切入切出声音不播放 [ 75%]

...,导致背景声音不播放问题。  Laya.stage.on(Laya.Event.BLUR, this, this.onBlur); Laya.stage.on(Laya.Event.FOCUS, this, this.onFocus);  private onBlur() {         // 暂停所有需要停止的逻辑         console.log("onBlur");         SoundManager.Instance.pauseBGM();   ...

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

333. Object.defineProperty is not a function [ 75%]

...序报错window.focus is not a function 调用动画结束on方法,报错this.zombieAnimator.on is not a function laya加载unity插件导出的场景 physics3D is not a function 用微信开发者调试的时候出现document.createTextNode is not a function api readFile success callback function...

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

334. 使用外部引擎播放layaair制作的.ani [ 75%]

...ight * 2); Laya.loader.load('./card/atlas/card.atlas', Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("./card/card.ani"); //添加到舞台 Laya.stage.addChild(tl); //播放Animation动画...

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

335. HttpRequest 回调方法都没执行 LayaAir 1.7.17 beta JS版本 [ 75%]

...都没执行 LayaAir 1.7.17 beta JS版本 function postData(url,request) { this.http = new Laya.HttpRequest(); //new一个HttpRequest类 this.http.once(Laya.Event.PROGRESS,this,this.onProgress); //数据传输中 this.http.once(Laya.Event.COMPLETE,this,this.onComplete); //数据传输完成后,会...

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

336. 用LayaAir引擎解析Tiled Map地图(TypeScript-2D进阶篇(TS)-扩展模块) [ 75%]

...Laya.Browser.width,Laya.Browser.height,Laya.WebGL); //创建TiledMap实例 this.tMap = new Laya.TiledMap(); //创建Rectangle实例,视口区域 var viewRect:Laya.Rectangle = new Laya.Rectangle(); //创建TiledMap地图 this.tMap.createMap("res/TiledMap/orthogonal.json",viewRect); } } new GameMain...

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

337. 使用 addChild 加载界面后,绑定事件报错 [ 75%]

...artUI {     constructor() {         super();          this.btnStart.on(Laya.Event.CLICK, this, this.startGame);     }      startGame(): void {         //Laya.Scene.open("GameView.scene");         if (!Main.gameView) {             Main.gameVie...

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

338. 用LayaAir引擎解析Tiled Map地图(JavaScript-2D进阶篇(JS)-扩展模块) [ 75%]

...Laya.Browser.width,Laya.Browser.height,Laya.WebGL); //创建TiledMap实例 this.tMap = new Laya.TiledMap(); //创建Rectangle实例,视口区域 var viewRect = new Laya.Rectangle(0,0,Laya.Browser.width,Laya.Browser.height); //创建TiledMap地图 this.tMap.createMap("res/TiledMap/orthogonal.json",...

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

339. 经验分享:如何控制龙骨动画的播放索引! [ 74%]

...0,600,WebGL); index=15; mFactory=new Templet(); mFactory.on(Event.COMPLETE,this,omTemLoaded); mFactory.loadAni('NewDragon/NewDragon.sk'); } private function omTemLoaded():void { mArmature=mFactory.buildArmature(0); Laya.stage.addChild(mArmature); Laya.stage.on(Event.CLICK,this,onClick); mArmature.pl...

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

340. Laya.Tween.to 有没有监听值的变化的方法? [ 74%]

...属性列表,比如{x:100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。          * @param   duration 花费的时间,单位毫秒。          * @param   ease 缓动类型,默认为匀速运动。          *...

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