大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0075 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.sound.source = "resources/sound.wav"; //音频路径 this.sound.loop = 0; //循环次数设置,要放在autoPlay参数设置前 this.sound.autoPlay = true; //自动播放 this.sound.isMusic = false; //是否为...
来源: Laya3.0_文档 发布时间: 20251010
...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
...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
...。 - 2.为Shader3D添加SubShader ``` addSubShader(subShader: SubShader): void; ``` - 3.通过宏定义遮罩编译shader,建议使用compileShaderByDefineNames。 ```typescript static compileShader(shaderName: String, subShaderIndex: Number, passIndex: Number, ...defineMask) ``` - 4.注册宏定...
来源: Laya2.0_文档 发布时间: 20210714
...能连续点击同一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
... 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
...法触发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
....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
...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
...Context2D.as 找到其中的stroke函数 override public function stroke():void { 在最后加上 _renderKey = -1; 如下: 另外你这样做效率太低了,建议用图片,或者用drawRect来做,line是很慢的 2018-04-02 0 1 分享 微博 QZONE 微信 Laya_XS 赞同来自: 确实...
来源: Laya_社区 发布时间: 20180402