大约有 870 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0068 秒)
Laya_社区(572) Laya2.0_文档(110) Laya3.0_api(79) Laya3.0_文档(75) Laya_示例(31) Laya2.0_api(2) laya_api(1)
...相关操作忽略 var heightMap:Texture2D = Loader.getRes("res/threeDimen/scene/TerrainScene/Assets/HeightMap.png") as Texture2D; //初始化MeshTerrainSprite3D terrainSprite = MeshTerrainSprite3D.createFromMeshAndHeightMap(meshSprite3D.meshFilter.sharedMesh as Mesh, heightMap, 6.574996471405029, 1...
来源: Laya2.0_文档 发布时间: 20210714
...: 附件为一个可用于测试的简单场景,继承 laya2.3.0的 Laya.Scene3D,可直接添加到Laya.stage显示 附件 : --> TestStage3D.zip 2019-11-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回...
来源: Laya_社区 发布时间: 20191129
...导出的动画效果。 ```typescript //加载我们导出的场景 Laya.Scene3D.load("res/LayaScene_LayaMonkey/Conventional/LayaMonkey.ls",Laya.Handler.create(this,function(s){ Laya.stage.addChild(s); })); ``` (图6)
来源: Laya2.0_文档 发布时间: 20210715
...导出的动画效果。 ```typescript //加载我们导出的场景 Laya.Scene3D.load("res/LayaScene_LayaMonkey/Conventional/LayaMonkey.ls",Laya.Handler.create(this,function(s){ Laya.stage.addChild(s); })); ``` (图6)
来源: Laya2.0_文档 发布时间: 20210715
...on 文件,或者文件读取失败,请检查后重新编译。 laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 iphoneX环境下新手引导的抠图透明区域为黑色,其它机型都是正常的。 请教下微信小游戏的内存和...
来源: Laya_社区 发布时间: 20181122
...on 文件,或者文件读取失败,请检查后重新编译。 laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 lh文件内meshSprite添加阴影属性无效 请问下loader如何强制加载一个文件,避免浏览器的缓存 微信小...
来源: Laya_社区 发布时间: 20170330
...性的详细说明见1.3节。 1.2.4 在代码里给 Tree 对象赋值 在Scene2D的属性设置面板中,增加一个自定义组件脚本。然后将Tree节点拖入到其暴露的属性入口中,在代码里给 Tree 对象赋值的示例如下: const { regClass, property } = Laya; @regClass...
来源: Laya3.0_文档 发布时间: 20251010
...lass SettingDialog extends Laya.Dialog { constructor() { super(); this.loadScene('assets/scenes/dialogs/SettingDialog.scene'); } }{ "x":0, "type":"Dialog", "selectedBox":2, "selecteID":3, "searchKey":"Dialog", "props":{"width":1624,"sceneColor":"#000000","runtime":"script/view/dialogs/SettingDialog....
来源: Laya_社区 发布时间: 20200417
有关Sprite3D使用lh资源文件的问题 var plane = this.scene.addChild(Laya.loader.getRes("res/LayaScene_plane/plane.lh")) as Laya.Sprite3D; 这样可以根据一个lh文件 来创建一个Sprite3D类型的对象。 那么请问,如果我写了一个类A,并继承与Laya.Sprite3D 我要怎...
来源: Laya_社区 发布时间: 20180227
...生阴影: ```typescript // A plane receive shadow. var grid: Sprite3D = scene.addChild(Loader.getRes("res/threeDimen/staticModel/grid/plane.lh")); grid.getChildAt(0).meshRenderer.receiveShadow = true; ....... // A sphere cast/receive shadow. var sphereSprite: MeshSprite3D = this.addPBRSphere(Prim...
来源: Laya2.0_文档 发布时间: 20210715