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

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

1611. 音频节点 · LayaAir3.4 · 引擎文档 · LAYABOX [ 67%]

...节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.sound.source = "resources/sound.wav"; //音频路径 this.sound.loop = 0; //循环次数设置,要放在autoPlay参数设置前 this.sound.autoPlay = true; //自动播放 this.sound.isMusic = false; //是否为...

来源: Laya3.0_文档 发布时间: 20251010

1612. list 数据不会及时渲染 [ 67%]

...shCard(0,[xxxxxx]);  public function refreshCard(index:int,cardArr:Array):void{             var cardList:List = _homeSeceneView["myCard_"+index];             if(cardList){                 if(!cardList.visible){                     cardList.visible = true...

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

1613. laya.display.cmd.DrawRoundRectCmd_API3.0 [ 67%]

...Optional height?: number width: number Returns number[] recover recover(): void Defined in laya/display/cmd/DrawRoundRectCmd.ts:78 回收到对象池 Returns void Globals "laya/display/cmd/DrawRoundRectCmd" DrawRoundRectCmd fillColor height lb lineColor lineWidth lt percent rb rt width x y ID getBou...

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

1614. Shader概述(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 67%]

...。 - 2.为Shader3D添加SubShader ``` addSubShader(subShader: SubShader): void; ``` - 3.通过宏定义遮罩编译shader,建议使用compileShaderByDefineNames。 ```typescript static compileShader(shaderName: String, subShaderIndex: Number, passIndex: Number, ...defineMask) ``` - 4.注册宏定...

来源: Laya2.0_文档 发布时间: 20210714

1615. [LayaAir3]list.selectHandler [ 67%]

...能连续点击同一index的选项    private onSelect(index: number): void {         console.log("当前选择的索引:" + index);         let checkBoxItem:Laya.CheckBox = this._list.getChildAt(index).getChildAt(0) as Laya.CheckBox;         if(checkBoxItem!=null){           ...

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

1616. LayaNative2.0 UI移除舞台,再添加必然无法显示 [ 67%]

... UI移除舞台,再添加必然无法显示 private function CreateCon():void { _con1 = new Sprite(); _con2 = new Sprite(); _con3 = new Sprite(); _con4 = new Sprite(); Laya.stage.addChild(_con1); Laya.stage.addChild(_con2); Laya.stage.addChild(_con3); Laya.stage.addChild(_con4);   _p1 = new UI1()...

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

1617. 发布微信后无法触发mouse_up事件 [ 67%]

...法触发mouse_up事件 /** 初始化资源加载完成 */ private initF():void{ Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseHandler); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseHandler); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseHandler); } private mouseHandler(e:laya.ev...

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

1618. 动画-SWF动画 [ 67%]

....bgColor = "#232628"; this.createMovieClip(); } private createMovieClip(): void { var mc: MovieClip = new MovieClip(); mc.load(this.SWFPath); mc.x = (Laya.stage.width - this.MCWidth) / 2; mc.y = (Laya.stage.height - this.MCHeight) / 2; Laya.stage.addChild(mc); } } } new laya.Animation_SWF() package ...

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

1619. 陀螺仪与加速计(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 67%]

...unction onDeviceorientation(absolute:Boolean, rotationInfo:RotationInfo):void  {  info.text =   "alpha:" + Math.floor(rotationInfo.alpha) + '\n' +  "beta :" + Math.floor(rotationInfo.beta) + '\n' +  "gamma:" + Math.floor(rotationInfo.gamma); } ``` ## 2、加速计 ​ `Accelera...

来源: Laya2.0_文档 发布时间: 20210714

1620. webgl graphics 绘制 层级 显示错误 [ 66%]

...Context2D.as 找到其中的stroke函数 override public function stroke():void { 在最后加上 _renderKey = -1; 如下:   另外你这样做效率太低了,建议用图片,或者用drawRect来做,line是很慢的   2018-04-02 0 1 分享 微博 QZONE 微信 Laya_XS 赞同来自: 确实...

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