大约有 1,869 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0045 秒)
Laya_社区(616) Laya3.0_api(529) Laya2.0_api(242) laya_api(178) Laya2.0_文档(88) Laya_示例(78) Laya3.0_文档(70) Laya2.0_示例(68)
...nLoaded(): void { var hbox: laya.ui.HBox = new laya.ui.HBox(); for (var i: number = 0; i < 10; i++) { var skin: string; switch (i) { case 0: skin = "comp/bg.png"; break; case 1: skin = "comp/blank.png"; break; case 2: skin = "comp/btn_close.png"; break; case 3: skin = "comp/button.png"; break; ca...
来源: Laya_社区 发布时间: 20170607
...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
...道是否正确,现在出现 TypeError: Cannot create property 'path' on number '10000' at new r (file:///Users/bingbing/MahjongProject/MahjongLaya/bin/socket.io.js:1:15053) zhishaofei3 • 2017-09-22 23:31 @piaobo80:链接打不开了怎么办 还有链接吗 重发一下 zhishaofei3 • 2017-09-...
来源: Laya_社区 发布时间: 20161214
...则会穿透house private var curTarget: Sprite; private var preMovementX: Number = 0; private var preMovementY: Number = 0; public function Physics_Physics_CollisionFiltering() { Laya.Config.isAntialias = true; Laya.init(1200, 700, WebGL); Stat.show(); Physics.enable(); PhysicsDebugDraw.enable(); L...
来源: Laya2.0_示例 发布时间: 20260106
...ssBar.value = 0; this.progressBar.value += 0.05; } private onChange(value: number): void { console.log("进度:" + Math.floor(value * 100) + "%"); } } } new laya.UI_ProgressBar(); ```
来源: Laya2.0_文档 发布时间: 20210715
... }); 播放时大概 playAniBody(actionName: string, direction: number, completeFun: Function = null): void { this.aniBody.destroyChildren(); this.aniBody.clear(); let loopPlay: boolean = true; let key: string = actionName + "_" + Math.a...
来源: Laya_社区 发布时间: 20170615
...请看最佳答案的回复 1681259092用户 • 2023-04-12 19:24 string、number等基本类型是可以的,图片不行,图片的类型不是Laya.Image吗? layabox小高 • 2023-04-12 19:36 可以创建一个示例项目观看一下
来源: Laya_社区 发布时间: 20230412
...nInfo("bbb"); private onResLoaded(parent:Laya.Node, winName:string, zOrder:number):void { printScreenInfo("ccc"); this.doOpen(parent, winName, zOrder); } aaa Screen Info: stage=(750,1334), stage design=(750,1334), browser=(300,278), browser client=(300,278), pixel ratio=1 bbb Screen Info...
来源: Laya_社区 发布时间: 20180316
...} private createCharacters(): void { this.characterGroup = []; for (var i: number = 0; i = 0; --i) { this.animateCharactor(this.characterGroup[i]); } } private animateCharactor(charactor: Sprite): void { charactor.x += this.moveSpeed; charactor.rotation += this.rotateSpeed; if (charactor.x > Laya.st...
来源: Laya2.0_示例 发布时间: 20260106
... Laya.stage.addChild(sp); let _picScale:number=1; //每点一下就缩小0.05倍 Laya.stage.on(Laya.Event.MOUSE_DOWN,this,()=>{ _picScale-=0.05; sp.sca...
来源: Laya_社区 发布时间: 20200422