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

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

1351. 全局安装layaair2-cmd报错怎么办啊 [ 46%]

...e detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js. npm ERR! code 1 npm ERR! path /usr/local/lib/node_modules/layaair2-cmd/node_modules/mozjpeg npm ERR! command failed npm ERR! comman...

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

1352. laya3D 发部为android,只要一创建场景(包括空场景)就有如下报错,并且黑屏 [ 46%]

...ene.load('res/models/scene1.ls'); this.scene = Laya.stage.addChild(scene); if(!scene) return; var camera = this.scene.addChild(new Laya.Camera(0, 0.01, 1000)); camera.transform.translate(new Laya.Vector3(0, consts.CAMERA_HEI, 0)); camera.transform.rotate(new Laya.Vector3(-45, 0, 0), true, false); ca...

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

1353. layaFlash 无法使用 Loader 加载外部SWF和图片 [ 46%]

...ic class SwfBinary extends Sprite { public function SwfBinary() { super(); if(stage) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } private function init(e:Event=null):void { var loader:Loader=new Loader(); var context:LoaderContext=new LoaderContext(false,ApplicationDomain...

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

1354. 通过AnimatorState为Animator添加多个播放状态islooping属性会被覆盖 [ 46%]

...tate.clip.islooping = false; // state.addScript(Laya.AnimatorStateScript); if (arrString[3] == "true") state.clip.islooping = true; this.ani.addState(state); // this.ani.play(arrString[2]); } }  /**播放动画 */ public playAni(aniName: PERSON_ANI, islooping: boolean = true): void { console.log("...

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

1355. 救命啊,遇到苹果爸爸 Guideline 2.5.2 [ 46%]

...reement.   This code, combined with a remote resource, can facilitate significant changes to your app’s behavior compared to when it was initially reviewed for the App Store. While you may not be using this functionality currently, it has the potential to load private frameworks, private methods,...

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

1356. canvas下资源清理的问题 [ 46%]

...     private function hide():void         {             if(taskView)             {                 taskView.destroy();                 taskView = null;                 Laya.loader.clearTextureRes("res/atlas/task.atlas");         ...

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

1357. 看下这个问题是不是Bug [ 45%]

... || (this._activeChangeScripts = []); let arr = this._activeChangeScripts; if (active) this._activeHierarchy(arr, fromSetter); else this._inActiveHierarchy(arr, fromSetter); for (let i = 0, n = arr.length; i < n; i++) { let comp = arr[i]; comp.owner && comp._setActive(active); } arr.lengt...

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

1358. Spine适配版(JavaScript-LayaAir基础篇(JS)-动画基础) [ 45%]

...le.log("parse error"); } private play(): void { console.log("1111111111"); if(++this.index >= this.skeleton.getAnimNum()) { this.index = 0 } this.skeleton.play(this.index, false, true) } } new SpineBinary; ``` 具体效果大家可以在官网引擎事例中查看。

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

1359. 画了一个封闭的曲线,获取鼠标点击处的像素,为何坐标对不上导致拿不到正确位置的Texture? [ 45%]

...0, 0, tex.width, tex.height); for(var i:int = 0; i < arr.length; i++) { if(arr[i] > 0) { pixelCount++; } } return pixelCount; } } }[/i] 2018-03-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Charles 赞...

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

1360. 模拟石头下落过程不明抖动 [ 45%]

...bj():Laya.Sprite { for( let i:number = 0 ; i < this.balls.length;i++ ){ if( !this.balls[i].parent ){ return this.balls[i]; } } let ball = new Laya.Sprite(); ball .graphics.drawRect( 0,0,140,140,"#d9d919"); this.balls.push( ball ); return ball; } } new TexasMain(); [/i][/i] 附件 : --> 不明抖...

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