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

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

131. 发布微信小游戏,sprite的graphics.drawPoly安卓平台会引起花屏 [ 49%]

...用view嵌套发布html5报"Uncaught TypeError:Cannot set property 'y' of null"的解决方案 LayaPlayer在x86ABI的安卓模拟器中崩溃 问题状态 最新活动: 2022-11-17 14:58 浏览: 7328 关注: 2 人 layabox小高 • 2022-11-17 15:08 您好,已经复现了,后续结果会在这里...

来源: Laya_社区 发布时间: 20221117

132. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 49%]

...Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); //加载进度 function onLoading(progress){ console.log("onLoading: " + progress); } //加载完毕 function onLoaded(){ console.log("onLoaded"); } 我们刷新页面看看有什么效果 如下图所示 我...

来源: Laya_社区 发布时间: 20160722

133. 性能测试-虫子(慎入) [ 48%]

...ler.create(this, onTextureLoaded)); } private function onTextureLoaded(e:*=null):void { maggotTexture = Laya.loader.getRes(texturePath); initMaggots(); Laya.timer.frameLoop(1, this, animate); } private function initMaggots():void { var maggotContainer:Sprite; for (var i:int = 0; i wb.x + wb.width) x...

来源: Laya_示例 发布时间: 20241002

134. Layabox web 复制一段文字到剪贴板 [ 48%]

...AppConfirm = document.getElementById("AppConfirm"); if (this.AppConfirm == null) { this.AppConfirm = document.createElement("div"); document.body.appendChild(this.AppConfirm); this.AppConfirm.id = "AppConfirm"; }  this.modlueDiv = document.getElementById("modlue"); if (this.modlueDiv == null) { thi...

来源: Laya_社区 发布时间: 20181214

135. 2D物理-复合碰撞器 [ 47%]

... Sprite; private totalBox = 200; private label: Label; Main: typeof Main = null; constructor(maincls: typeof Main) { this.Main = maincls; Laya.Config.isAntialias = true; Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Stat.show(); Physics.enable({ gravity: 0 }); PhysicsDebugDraw.enable(...

来源: Laya2.0_示例 发布时间: 20241002

136. 缓动动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 47%]

...Text.y = 300; //Tween.from(letterText, { y : 100 }, 3000, Ease.elasticOut, null, i * 1000);//注释本行改为将Tween.from改变为Tween.to Tween.to(letterText, { y : 100 }, 3000, Ease.elasticOut, null, i * 1000); ``` 运行效果如动图3所示 ![动图3.gif](img/3.gif)(动图3) 结合代码...

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

137. 性能测试-虫子(慎入) [ 47%]

...ler.create(this, onTextureLoaded)); } private function onTextureLoaded(e:*=null):void { maggotTexture = Laya.loader.getRes(texturePath); initMaggots(); Laya.timer.frameLoop(1, this, animate); } private function initMaggots():void { var maggotContainer:Sprite; for (var i:int = 0; i wb.x + wb.width) x...

来源: Laya2.0_示例 发布时间: 20241002

138. 动画-旧版骨骼动画 [ 47%]

...a.loader.load(["../../../../res/threeDimen/ui/button.png"], Handler.create(null, function():void { changeActionButton = Laya.stage.addChild(new Button("../../../../res/threeDimen/ui/button.png", "切换动作")) as Button; changeActionButton.size(160, 40); changeActionButton.labelBold = true; change...

来源: Laya_示例 发布时间: 20241002

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

..."res/TiledMap/orthogonal.json",viewRect, Handler.create(this,onMapLoaded), null, gridSize) ``` ### 3.3 合并图层 #### 3.3.1 开启合并图层 当TiledMap里有多个图层时,开启合并图层的属性enableMergeLayer,可以将图层合并,会对性能有所提高。 开启的方式为:...

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

140. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 43%]

..., texture: Texture2D, minHeight: number, maxHeight: number, name: string = null): MeshTerrainSprite3D { var meshTerrainSprite3D: MeshTerrainSprite3D = new MeshTerrainSprite3D(mesh, null, name); meshTerrainSprite3D._initCreateFromMeshHeightMap(texture, minHeight, maxHeight); return meshTerrainSprite3...

来源: Laya3.0_文档 发布时间: 20230303