大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0074 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...(Event.INPUT, this, onInputChange); private function reset(e:Event = null):void { clickStar = 0; txtInput.text = ""; txtLast.text = "剩余输入:" + WelfareNoticeMgr.MAX_WARD + "字"; } private function onInputChange(e:Event):void { txtLast.text = "剩余输入...
来源: Laya_社区 发布时间: 20170812
...le init2 init2(texture: Texture, ps: any[], verticles: any[], uvs: any[]): void Defined in laya/ani/bone/canvasmesh/SkinMeshForGraphic.ts:31 创建Texture MeshData Parameters texture: Texture 纹理 ps: any[] 索引数据 verticles: any[] 顶点数据 uvs: any[] uv数据 Returns void Globals "laya/a...
来源: Laya3.0_api 发布时间: 20231115
...this.bg1.y+this.y来做判断呢? 如题,正确的代码是:onLoop():void{ this.y+=50; if (this.bg1.y+this.y>=852) { this.bg1.y-=852*2; } if (this.bg2.y+this.y>=852) { this.bg2.y-=852*2; } }我尝试的代码是: onLoop():void{ this.y+=50; if (this.bg1.y>=852) { this.y-=852*2; this....
来源: Laya_社区 发布时间: 20180114
...ya.stage.bgColor = "#232628"; this.createInput(); } private createInput(): void { var inputText: Input = new Input(); // 移动端输入提示符 inputText.prompt = "Type some word..."; //多行输入 inputText.multiline = true; inputText.wordWrap = true; inputText.size(350, 100); inputText.x = Laya...
来源: Laya2.0_示例 发布时间: 20260303
... SphereCollider 实例。 MeshCollider _initialize(owner:ComponentNode):void[override] MeshCollider event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher hasListener(type:String):Boolean 检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 Even...
来源: laya_api 发布时间: 20170929
...ager.playSound=function(url,loops,complete,soundClass,startTime){ (loops===void 0)&& (loops=1); (startTime===void 0)&& (startTime=0); if(!url) return null; SoundManager._recoverWebAudio(); url=URL.formatURL(url); if (url!=SoundManager._tMusic){ if (Render.isConchApp){ var ext=Utils.g...
来源: Laya_社区 发布时间: 20181019
...以正常跑,发布到微信小游戏出错 private function beginLoad():void { //加载引擎需要的资源 //Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded)); Laya.loader.load ...
来源: Laya_社区 发布时间: 20180513
...Sprite3D) 创建一个新的 MeshFilter 实例。 MeshFilter _destroy():void[override] MeshFilter event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher hasListener(type:String):Boolean 检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 EventD...
来源: laya_api 发布时间: 20170929
...有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.fontclp.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.fontclp.size(500, 60); //大小 this.fontclp.pivot(this.fontclp.width/2, this.fontclp.height/2); //轴心点 this.fontclp.skin ...
来源: Laya3.0_文档 发布时间: 20251010
...on(Event.ERROR, this, onError); } protected function onError(error:String):void { trace(error); } protected function onLoaded():void { Animation.createFrames(["war/hero_fly1.png", "war/hero_fly2.png"], "hero_fly"); var animation:Animation = new Animation(); //animation.loadImages(["war/hero_fly1.png...
来源: Laya_社区 发布时间: 20161026