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

大约有 1,614 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0243 秒)

1551. 2D性能优化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 37%]

...ew Laya.Sprite(); sp.loadImage("res/apes/monkey2.png",0,0,0,0,Laya.Handler.create(this,function() { console.log(sp.width,sp.height); })); Laya.stage.addChild(sp); loadImage在加载完成的回调函数触发之后才可以正确获取宽高。 直接调用size设置: Laya.loader.load("res/apes/mo...

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

1552. [BUG]刚体约束问题,移动后约束混乱! [ 37%]

...r plane = this.scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane(40, 40, 40, 40)));     plane.transform.position = new Laya.Vector3(0, -2.0, 0);     var planeMat = new Laya.BlinnPhongMaterial();     Laya.Texture2D.load("res/threeDimen/Physics/grass.png",...

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

1553. 字节跳动小游戏发布指南(TypeScript-小游戏适配文档-字节跳动小游戏) [ 37%]

...称或配置的[搜索标签词](https://developer.toutiao.com/docs/intro/create.html#第三步:设置搜索关键词与分享)被用户检索到,会根据算法匹配,在搜索结果里展示相应的小游戏,用户可以点击该条搜索结果,直接打开小游戏。 ##### feed 流推...

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

1554. [LayaNative3]2d示例程序构建发布打包后,在OpenHarmony运行闪退 [ 37%]

...tegratedHsp... after 1 ms > hvigor Finished :libSysCapabilities:default@CreateHarBuildProfile... after 2 ms > hvigor Finished :libSysCapabilities:default@ConfigureCmake... after 1 ms > hvigor Finished :libSysCapabilities:default@MergeProfile... after 5 ms > hvigor Finished :entry:default...

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

1555. 多线程worker(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 37%]

...引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //实例UI界面 var testView = ui.test.TestPageUI(); Laya.stage.addChild(testView); } ``` `WorkerLoader.workerPath = "libs/worker.js";`设置worker.js的路径,这个worker.js...

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

1556. 3D中如何限制角色的行走区域? [ 36%]

...          var terrainSprite:MeshTerrainSprite3D = MeshTerrainSprite3D.createFromMeshAndHeightMap(meshSprite3D.meshFilter.sharedMesh as Mesh, texture, minHeight, maxHeight);               terrainSprite.transform.worldMatrix = meshSprite3D.transform.worldMatrix;         角色行走时...

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

1557. 多线程worker(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 36%]

...引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //实例UI界面 var testView:ui.test.TestPageUI = new ui.test.TestPageUI(); Laya.stage.addChild(testView); } } new LayaUISample; ``` `WorkerLoader.workerPath = "libs/wo...

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

1558. 使用3D UI · LayaAir3.3 · 引擎文档 · LAYABOX [ 36%]

...this.value.visible = true; Main.instance.animator.play("stun"); Laya.Tween.create(this.value).to("y", -30).duration(1000); } } 上述代码中的Main.instance.animator.play("Stun");表示改变动画状态,目的是在减少血量时播放受到攻击的动画。需要在场景的Scene2D中添加...

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

1559. 多线程worker(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 36%]

...ya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 var testView:TestView = new TestView(); Laya.stage.addChild(testView); } } } ``` ​ `WorkerLoader.workerPath = "libs/worker.js";`设置worker.js...

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

1560. 混合模式-Lighter [ 36%]

...howall"; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() { createPhoenixes(); // 动态背景渲染 evalBgColor(); Laya.timer.frameLoop(1, this, renderBg); } function createPhoenixes() { var scaleFactor = Math.min( Laya.stage.width / (phoenixWidth * 2), Laya.stage.height / phoenixHei...

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