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

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

1. timer无法执行 [ 100%]

...gMaterial();   Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(layabox: Laya.Texture2D): void{ ball1mat.albedoTexture = layabox; })); //ball1mat.tilingOffset = new Laya.Vector4(10, 10, 0, 0); ball1.meshRenderer.material = ball1mat; //添加刚体 ball1.addComponent(Laya.Ph...

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

2. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 94%]

... a.mouseEnabled = true; a.mouseThrough = true; a.on(Laya.Event.MOUSE_DOWN, null, function (e: Laya.Event): void {     console.log("touch a"); } 因为需要将mouseThrough=true才可以,蛋疼的api描叙你能相信是这个熟悉么? “mouseThrough : Boolean = false,指定当mouseEnabled=...

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

3. Laya2自动同步cullingMask方案以及灯光裁剪补丁 [ 88%]

...= layerStr.substr(1); } let layer = this._layerMap[layerStr]; if(layer === null || layer === undefined){ console.log(layerNodeName + ' don not match the rule of layer node.'); return; } if(bRemove){ this.removeLayer(target,layer); } else{ this.addLayer(target,layer); } } } } public static removeAllL...

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

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

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

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

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

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

6. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 57%]

..., 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