• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 3,974 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0083 秒)

671. 物理刚体(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 86%]

...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

672. UI-Clip [ 86%]

...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_示例 发布时间: 20241001

673. 物理刚体(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 86%]

...rShape)。 ```typescript //新建一个球体模型并添加到舞台上 var sphere:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createSphere(1))) as MeshSprite3D; //新建一个球形的碰撞盒 var sphereShape:SphereColliderShape = new SphereColliderShape(1); //给球添加刚...

来源: Laya2.0_文档 发布时间: 20210714

674. 打包后启动游戏后报错 [ 86%]

...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

675. 用LayaAir引擎解析Tiled Map地图(ActionScript-2D进阶篇(AS3)-扩展模块) [ 86%]

...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

676. 文本-HTML文本 [ 86%]

...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_示例 发布时间: 20241001

677. 加载-单一类型资源加载 [ 86%]

...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_示例 发布时间: 20241001

678. 关于大量绘制 draw的性能优化问题 [ 86%]

...果是绘制几百个圆形会卡,掉帧很严重(不考虑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

679. laya.resource.Texture [ 86%]

...资源加载完成后调度。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

680. 图层叠加的实现 [ 86%]

图层叠加的实现 我用 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