大约有 1,499 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0063 秒)
...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
...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
...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
...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
...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
... private function hide():void { if(taskView) { taskView.destroy(); taskView = null; Laya.loader.clearTextureRes("res/atlas/task.atlas"); ...
来源: Laya_社区 发布时间: 20180425
... || (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
...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
...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
...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