大约有 356 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0035 秒)
Laya_社区(99) Laya_示例(78) Laya2.0_示例(68) Laya3.0_api(55) Laya2.0_文档(35) Laya3.0_文档(10) laya_api(6) Laya2.0_api(5)
...动画最后一帧的索引值, */ private aniUrls(aniName:string,length:number):any{ var urls:any = []; for(var i:number = 0;i<length;i++){ //动画资源路径要和动画图集打包前的资源命名对应起来 urls.push("role/"+aniName+i+".png"); } return urls; } } new AtlasAniDemo(); ``` ...
来源: Laya2.0_文档 发布时间: 20210715
...tage.on(Event.RESIZE, this, this.onResize); this.makeObject(0); for (var i:number = 0; i this.objs) { this.current = 0; } this.makeObject(this.current); } private makeObject(t):void { var xd:number; var i:number; switch (t) { case 0: for (i = 0; i this.tpoint1[i]) { this.tpoint1[i] = this.tpoint1[i]...
来源: Laya_示例 发布时间: 20251130
...tage.on(Event.RESIZE, this, this.onResize); this.makeObject(0); for (var i:number = 0; i this.objs) { this.current = 0; } this.makeObject(this.current); } private makeObject(t):void { var xd:number; var i:number; switch (t) { case 0: for (i = 0; i this.tpoint1[i]) { this.tpoint1[i] = this.tpoint1[i]...
来源: Laya2.0_示例 发布时间: 20251130
...)); } private onCheckBoxSkinLoaded(): void { var cb: CheckBox; for (var i: number = 0; i < this.COL_AMOUNT; ++i) { for (var j: number = 0; j < this.ROW_AMOUNT; ++j) { cb = this.createCheckBox(this.skins[i * this.ROW_AMOUNT + j]); cb.selected = true; cb.x = this.HORIZONTAL_SPACING * i + this.X_OFFSET...
来源: Laya2.0_示例 发布时间: 20251130
...r(this, this.onChange); Laya.stage.addChild(vs); } private onChange(value: Number): void { console.log("滑块的位置:" + value); } } } new laya.UI_Slider();package { import laya.display.Stage; import laya.ui.HSlider; import laya.ui.VSlider; import laya.utils.Handler; import laya.webgl.WebGL; pu...
来源: Laya2.0_示例 发布时间: 20251130
...)); } private onCheckBoxSkinLoaded(): void { var cb: CheckBox; for (var i: number = 0; i < this.COL_AMOUNT; ++i) { for (var j: number = 0; j < this.ROW_AMOUNT; ++j) { cb = this.createCheckBox(this.skins[i * this.ROW_AMOUNT + j]); cb.selected = true; cb.x = this.HORIZONTAL_SPACING * i + this.X_OFFSET...
来源: Laya_示例 发布时间: 20251130
...报错了 Uncaught DOMException: Failed to construct 'AudioContext': The number of hardware contexts provided (6) is greater than or equal to the maximum bound (6). at Function.<anonymous> (<anonymous>:10787:310) at Function.get (<anonymous>:168:66) at Function.WebAudioSound.initWe...
来源: Laya_社区 发布时间: 20170224
...ort Render = Laya.Render; export class Physics_Cloth { private stageWidth: number = 800; private stageHeight: number = 600; private Matter: any = Browser.window.Matter; private LayaRender: any = Browser.window.LayaRender; private mouseConstraint: any; private engine: any; constructor() { // 不支...
来源: Laya_示例 发布时间: 20251130
...ing = "LayaBox"; for (var i = 0, len = demoString.length; i > 1; var endY: number = Laya.stage.height / 2 - 50; var demoString: string = "LayaBox"; for (var i: number = 0, len: number = demoString.length; i > 1; var endY:int = Laya.stage.height / 2 - 50; var demoString:String = "LayaBox"; for (var i...
来源: Laya_示例 发布时间: 20251130
...} 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...
来源: Laya_示例 发布时间: 20251130