大约有 1,546 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0076 秒)
关于zOrder层级问题 console.log(arr1.zOrder); //打印结果:3 console.log(this.target.zOrder); //打印结果:10 最后运行时舞台上显示的是arr1(sprite)在target(sprite)之上。 但是在编缉器上显示是正常的。 arr1对象是运行时动态添...
来源: Laya_社区 发布时间: 20200326
...roto.changeClips=function(){ var img=Loader.getRes(this._skin); if (!img){ console.log("lose skin",this._skin); return; }; var width=img.sourceWidth; var height=img.sourceHeight / this._stateNum; img.$_GID || (img.$_GID=Utils.getGID()); var key=img.$_GID+"-"+this._stateNum; var clips=AutoBitmap.getC...
来源: Laya_社区 发布时间: 20170516
...ressBar.value = 0; progressBar.value += 0.05; } function onChange(value) { console.log("进度:" + Math.floor(value * 100) + "%"); } })();module laya { import Stage = Laya.Stage; import ProgressBar = Laya.ProgressBar; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Progre...
来源: Laya_示例 发布时间: 20250224
...,forerake,false", "443,485,backward,true"]; let state: Laya.AnimatorState; console.log("getANi"); for (let i = 0; i < arr.length; i++) { let arrString = arr[i].split(","); // 创建动画动作状态 state = new Laya.AnimatorState(); //设置动作状态的名称 state.name = arrString[2]; // 开...
来源: Laya_社区 发布时间: 20190802
...e.runNodeScript(node.id, node.getComponent("MyScript").id, "test", "abc"); console.log(ret); 3、自定义一个函数,并执行。例如: //下面是场景进程的代码 //注意:IEditorEnv.regClass是必须的 @IEditorEnv.regClass() export class TestSceneScript { //注意:this是当前的...
来源: Laya3.0_文档 发布时间: 20250214
... this.animator = this.sprite.getComponent(Laya.Animator) as Laya.Animator; console.log("11"); } public RoleMove(dir:Laya.Vector3) { let norDir:Laya.Vector3 = Laya.Vector3.ZERO; Laya.Vector3.normalize(dir,norDir); console.log(norDir); //this.sprite.transform.translate(norDir,false); // let position...
来源: Laya_社区 发布时间: 20191026
... } public removeball( ball:Laya.Sprite ){ Laya.stage.removeChild(ball); // console.log("rmove ball") } public getObj():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...
来源: Laya_社区 发布时间: 20180226
...10; i++) Laya.timer.callLater(this, this.hideImage); } hideImage(): void { console.log("hideImage"); this.Image.visible = false; } } 5. 清理定时器 Laya.timer.clear:清理指定的定时器。定义如下: /** * 清理定时器。 * @param caller 执行域(this)。 * @param method 定时器...
来源: Laya3.0_文档 发布时间: 20240910
...ld(button); dialog.dragArea = "0,0," + DIALOG_WIDTH + "," + DIALOG_HEIGHT; console.log("SHOW"); dialog.show(); Laya.timer.once(3000, this, function () { console.log("SHOW"); dialog.show(); }); } })();http://layaair.ldc.layabox.com/demo/?UI_Dialog 直接到示例下跑一跑就知道了... @cuixueyin...
来源: Laya_社区 发布时间: 20170303
...到2.2.0 beta3后,原有的排行榜功能出现了显示问题,查看console应该是开放域没有找到文件。 微信开发工具: 手机调试控制台: 附件 : --> 2019-08-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...
来源: Laya_社区 发布时间: 20190814