大约有 1,614 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0243 秒)
Laya_社区(1206) Laya2.0_文档(194) Laya_示例(55) Laya3.0_api(49) Laya2.0_示例(43) Laya3.0_文档(42) Laya2.0_api(13) laya_api(12)
...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
...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
...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