大约有 13 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0037 秒)
...换成地图数据 如图2-3所示,此图只有64x64像素,可以存放4096个地块信息,白色代表可以行走的区域,黑色代表不可以行走的区域 (图2-3) 通过下面代码,可以读取此图,并将颜色值放到数组中 /** * 通过图片数据计算得到AStart...
来源: Laya3.0_文档 发布时间: 20230303
...null): void { let tabA: Laya.Tab = this.createTab(this.skins[0]); tabA.pos(40, 120); tabA.labelColors = "#000000,#d3d3d3,#333333"; let tabB: Laya.Tab = this.createTab(this.skins[1]); tabB.pos(40, 220); tabB.labelColors = "#FFFFFF,#8FB299,#FFFFFF"; } private createTab(skin: string): Laya.Tab { let ta...
来源: Laya3.0_文档 发布时间: 20251010
...ll right reserved,powered by LayaAir Engine更新时间: 2025-10-23 18:40:10 img{cursor:pointer}
来源: Laya3.0_文档 发布时间: 20251023
...= new Laya.TextInput(); ti.skin = skin; ti.size(300, 50); ti.sizeGrid = "0,40,0,40"; ti.font = "Arial"; ti.fontSize = 30; ti.bold = true; ti.color = "#606368"; this.owner.addChild(ti); return ti; } } (代码中的图片资源来自“引擎API使用示例”项目,开发者可以自行创建下...
来源: Laya3.0_文档 发布时间: 20251010
...scrollLeft(1)表示向左滚动20像素,scrollLeft(2)表示向左滚动40像素。注意:如果滚动属性设置了贴近元件,例如元件大小为41像素,则需要滚动距离超过20像素,才能真正发生滚动,那么如果调用scrollLeft(1),在step=20的情况下,会导致...
来源: Laya3.0_文档 发布时间: 20251010
...ll right reserved,powered by LayaAir Engine更新时间: 2025-10-23 18:40:10 img{cursor:pointer}
来源: Laya3.0_文档 发布时间: 20251023
.../ 2 - 35; this.counter.y = (Laya.stage.height - this.counter.height) / 2 - 40; this.owner.addChild(this.counter); } private showTotalSeconds(): void { var clip: Laya.Clip = new Laya.Clip(this.clipSkin, 10, 1); clip.index = clip.clipX - 1; clip.pos(this.counter.x + 60, this.counter.y); this.owner.add...
来源: Laya3.0_文档 发布时间: 20251010
...random() - 0.5) * 10); moveRanges[i] = new Vector3((Math.random() - 0.5) * 40, 0, (Math.random() - 0.5) * 40); } var spotLight: Laya.Sprite3D = (<Laya.Sprite3D>this.scene.addChild(new Laya.Sprite3D())); var spotLightCom: Laya.SpotLightCom = spotLight.addComponent(Laya.SpotLightCom); spotLight....
来源: Laya3.0_文档 发布时间: 20251010
...00%">' + '<div xmlns="http://www.w3.org/1999/xhtml" style="font-size:40px">' + '<em>I</em> like ' + '<span style="color:white; text-shadow: 0px 1px 0px #999, 0px 2px 0px #888, 0px 3px 0px #777, 0px 4px 0px #666, 0px 5px 0px #555, 0px 6px 0px #444, 0px 7px 0px #333, 0px 8px 7p...
来源: Laya3.0_文档 发布时间: 20251010
...数值) 要截取的时间点 / 动画的总时长 state.clipStart = 10/40; //设置动作状态播放的结束时间 state.clipEnd = 20/40; //动画播放是否循环 state.clip.islooping = true; //动画状态机,直接播放Stand_new动画状态 this.animator.play("Stand_new"); 看看运行...
来源: Laya3.0_文档 发布时间: 20251010