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

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

1681. textArea滚动条异常问题 [ 65%]

...(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

1682. laya.ani.bone.canvasmesh.SkinMeshForGraphic_API3.0 [ 65%]

...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

1683. "TS语言开发H5游戏微信飞机大战"中,为什么是用this.bg1.y+this.y来做判断呢? [ 65%]

...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

1684. 文本-多行输入 [ 65%]

...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

1685. laya.d3.component.physics.MeshCollider [ 65%]

... SphereCollider 实例。 MeshCollider  _initialize(owner:ComponentNode):void[override] MeshCollider event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher hasListener(type:String):Boolean 检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 Even...

来源: laya_api 发布时间: 20170929

1686. 个人笔记:失焦或静音状态下播放背景音乐无效的解决方案 [ 65%]

...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

1687. 添加fairygui使用fairygui.UIPackage.addPackage ( "res/Bag" )后可以正常跑,发布到微信小游戏出错 [ 65%]

...以正常跑,发布到微信小游戏出错 private function beginLoad():void {             //加载引擎需要的资源             //Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded));              Laya.loader.load           ...

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

1688. laya.d3.core.MeshFilter [ 65%]

...Sprite3D) 创建一个新的 MeshFilter 实例。 MeshFilter  _destroy():void[override] MeshFilter event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher hasListener(type:String):Boolean 检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 EventD...

来源: laya_api 发布时间: 20170929

1689. 字体切片组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 65%]

...有节点和组件均已创建完毕,此方法只执行一次 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

1690. 关于as版的Animation.createFrames()不能工作? [ 65%]

...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