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

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

1551. 请问我用网络格式加载成功后,在服务器替换image.atlas和images.png重新打开小游戏没有重新加载服务器的png,只重新加载了atlas [ 38%]

...type: Laya.Loader.IMAGE }, ];    Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded2));     RTX截图未命名.png ============================================================================== 打印了一下 https://piggy.com/images/boss.png文件,每次都从服务器上重...

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

1552. 网络通信 · LayaAir3文档 · LAYABOX [ 37%]

...or multiple files to load * @param {Root} root Root namespace, defaults to create a new one if omitted. * @param {LoadCallback} callback Callback function * @returns {undefined} * @see {@link Root#load} */ function load(filename, root, callback) { if (typeof root === "function") { callback = root; r...

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

1553. 2D性能优化 · LayaAir3.4 · 引擎文档 · 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

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

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

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

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

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

1557. 多线程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

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

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

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

1559. 多线程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

1560. 使用3D UI · LayaAir3.4 · 引擎文档 · 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