大约有 1,617 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0089 秒)
Laya_社区(1208) Laya2.0_文档(194) Laya_示例(55) Laya3.0_api(49) Laya3.0_文档(43) Laya2.0_示例(43) Laya2.0_api(13) laya_api(12)
...type: Laya.Loader.IMAGE }, ]; Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded2)); RTX截图未命名.png ============================================================================== 打印了一下 https://piggy.com/images/boss.png文件,每次都从服务器上重...
来源: Laya_社区 发布时间: 20180613
...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
...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
...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
...称或配置的[搜索标签词](https://developer.toutiao.com/docs/intro/create.html#第三步:设置搜索关键词与分享)被用户检索到,会根据算法匹配,在搜索结果里展示相应的小游戏,用户可以点击该条搜索结果,直接打开小游戏。 ##### feed 流推...
来源: Laya2.0_文档 发布时间: 20210714
...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
...引擎需要的资源 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
... var terrainSprite:MeshTerrainSprite3D = MeshTerrainSprite3D.createFromMeshAndHeightMap(meshSprite3D.meshFilter.sharedMesh as Mesh, texture, minHeight, maxHeight); terrainSprite.transform.worldMatrix = meshSprite3D.transform.worldMatrix; 角色行走时...
来源: Laya_社区 发布时间: 20170505
...引擎需要的资源 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
...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