大约有 3,979 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0080 秒)
Laya_社区(2827) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(53)
...is.showTotalSeconds(); this.createController(); } private showBg(): void { var bg: Image = new Image(this.bgSkin); bg.size(224, 302); bg.pos(Laya.stage.width - bg.width >> 1, Laya.stage.height - bg.height >> 1); Laya.stage.addChild(bg); } private createTimerAnimation(): void { this.counter = new Cli...
来源: Laya2.0_示例 发布时间: 20250224
...rShape)。 ```typescript //新建一个球体模型并添加到舞台上 var sphere:Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(PrimitiveMesh.createSphere(1))) as Laya.MeshSprite3D; //新建一个球形的碰撞盒 var sphereShape:Laya.SphereColliderShape = new Laya.SphereColliderShap...
来源: Laya2.0_文档 发布时间: 20210714
...rShape)。 ```typescript //新建一个球体模型并添加到舞台上 var sphere:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createSphere(1))) as MeshSprite3D; //新建一个球形的碰撞盒 var sphereShape:SphereColliderShape = new SphereColliderShape(1); //给球添加刚...
来源: Laya2.0_文档 发布时间: 20210714
...ng,url:String,callbackName:String):void { this.type = type; //发送请求 var script:* = Browser.createElement("script"); script.id = "serverlist"; Browser.document.head.appendChild(script); script.src = url; script.type = "get"; Browser.window[callbackName] = callback; //loading Main.tl.startLoad(...
来源: Laya_社区 发布时间: 20180209
...tils.Browser; import laya.webgl.WebGL; public class TiledMapDemo { private var tMap:TiledMap; public function TiledMapDemo() { //初始化舞台 Laya.init(Browser.width, Browser.height, WebGL); //创建TiledMap实例 tMap = new TiledMap(); //创建Rectangle实例,视口区域 var viewRect:Rectangl...
来源: Laya2.0_文档 发布时间: 20210714
...alHTML(); // 使用外部定义的html } private createParagraph(): void { var p: HTMLDivElement = new HTMLDivElement(); Laya.stage.addChild(p); p.style.font = "Impact"; p.style.fontSize = 30; var html: string = "使用"; html += "HTMLDivElement"; html += "创建的"; html += "HTML文本"; p.innerHT...
来源: Laya2.0_示例 发布时间: 20250224
...ture: Texture): void { // 使用texture } private onAssetLoaded2(): void { var pic1: Texture = Loader.getRes("res/apes/monkey0.png"); var pic2: Texture = Loader.getRes("res/apes/monkey1.png"); var pic3: Texture = Loader.getRes("res/apes/monkey2.png"); // 使用资源 } } } new laya.Loader_SingleType...
来源: Laya2.0_示例 发布时间: 20250224
...果是绘制几百个圆形会卡,掉帧很严重(不考虑webgl) var Browser = laya.utils.Browser; var Stat = laya.utils.Stat; var Event = laya.events.Event; var Sprite = laya.display.Sprite; Laya.init(800, 1030); Stat.show(0,0); var drawLayer = new Sprite(); Laya.stage.addChild(...
来源: Laya_社区 发布时间: 20160725
...资源加载完成后调度。TextureProperty Detail_atlasIDpropertypublic var _atlasID:int = -1bitmapproperty public var bitmap:* 图片或者canvas 。DEF_UVproperty public static var DEF_UV:Array默认 UV 信息。heightproperty height:Number 实际高度。 Implementation public funct...
来源: laya_api 发布时间: 20170929
图层叠加的实现 我用 var ape:Sprite = new Sprite(); var t:Texture = Laya.loader.getRes("res/bg.png"); ape.graphics.drawTexture(t,0,0); var t1:Texture = Laya.loader.getRes("res/wzq.png"); ape.graphics.drawTexture(t1,0,0); var t2:Texture = Laya.loader.getRes("res/rkfb.png"); ape.graphics.draw...
来源: Laya_社区 发布时间: 20180605