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

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

501. laya.ui.Tab_API3.0 [ 51%]

...ge.addChild(tab);//将 tab 添到显示列表。 } private onSelect(index: number): void { console.log("当前选择的表情页索引: index= ", index); } } Hierarchy UIGroup Tab Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThroug...

来源: Laya3.0_api 发布时间: 20231115

502. laya.ui.RadioGroup_API3.0 [ 51%]

...Group);//将 radioGroup 添加到显示列表。 } private onSelect(index: number): void { console.log("当前选择的单选按钮索引: index= ", index); } } Hierarchy UIGroup RadioGroup Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior m...

来源: Laya3.0_api 发布时间: 20231115

503. laya.ui.Tree_API3.0 [ 51%]

...激活。 Returns boolean 在场景中是否激活。 alpha get alpha(): number set alpha(value: number): void Inherited from Text.alpha Defined in laya/display/Sprite.ts:1026 透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。 Returns number Inherited from T...

来源: Laya3.0_api 发布时间: 20231115

504. 网络和格式-XML [ 51%]

...de:any = xml.firstChild; var nodes:Array = rootNode.childNodes; for (var i:number = 0; i item aitem bsomethis..."; var xmlValue:String = "item aitem bsomethings..."; proessXML(xmlValueContainsError); trace("\n"); proessXML(xmlValue); } // 使用xml private function proessXML(source:String):void { tr...

来源: Laya2.0_示例 发布时间: 20251209

505. 背景音乐播放完毕要等很久才开始循环播放,版本1.7.17 [ 50%]

...on playMusic(url:String, loops:int = 0, complete:Handler = null, startTime:Number = 0):SoundChannel { 你的参数传入是否正确那? 或者能否发一下你出问题部分的代码或者小demo那? 2018-04-17 0 1 分享 微博 QZONE 微信 Apple 赞同来自: 你用普通播放器听听音...

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

506. layaAir如何实现for循环加载多张图片,并且通过事件按比例缩小 [ 49%]

...ape.x=(apesCtn._childs.length)*(stageWidth/4)             var bl:Number=texture.width/texture.height             ape.graphics.drawTexture(texture,0,0,stageWidth/4,stageWidth/4/bl);             apesCtn.addChild(ape);         } 2016-10-23 添加评论 免费帖 --> 分...

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

507. 自定义shader-边缘光照shader [ 48%]

...Laya.Scene.LIGHTDIRCOLOR, Laya.Shader3D.PERIOD_SCENE] }; var customShader: number = Laya.Shader3D.nameKey.add("CustomShader"); var vs: string = "attribute vec4 a_Position;\n" + "attribute vec2 a_Texcoord;\n" + "attribute vec3 a_Normal;\n" + "uniform mat4 u_MvpMatrix;\n" + "uniform mat4 u_WorldMat;\n...

来源: Laya_示例 发布时间: 20251209

508. laya.display.AnimationBase_API3.0 [ 48%]

...ode.tag Defined in laya/display/Node.ts:62 节点标签 wrapMode wrapMode: number = 0 Defined in laya/display/AnimationBase.ts:33 播放顺序类型:AnimationBase.WRAP_POSITIVE为正序播放(默认值),AnimationBase.WRAP_REVERSE为倒序播放,AnimationBase.WRAP_PINGPONG为pingpong播放(当...

来源: Laya3.0_api 发布时间: 20231115

509. laya.display.FrameAnimation_API3.0 [ 48%]

...ode.tag Defined in laya/display/Node.ts:62 节点标签 wrapMode wrapMode: number = 0 Inherited from AnimationBase.wrapMode Defined in laya/display/AnimationBase.ts:33 播放顺序类型:AnimationBase.WRAP_POSITIVE为正序播放(默认值),AnimationBase.WRAP_REVERSE为倒序播放,AnimationBa...

来源: Laya3.0_api 发布时间: 20231115

510. iframe页面嵌套下失焦(焦点在父窗口被聚焦),playMusic背景音乐播放无声音 [ 48%]

...loops:int = 1, complete:Handler = null, soundClass:Class = null, startTime:Number = 0):SoundChannel { if ((!_isActive && loops != 0) || !url) return null; if (_muted) return null; _recoverWebAudio(); url = URL.formatURL(url); if (url == _tMusic) { if (_musicMuted) return null; } else { if (R...

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