大约有 3,769 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0095 秒)
Laya_社区(3279) Laya2.0_文档(154) Laya3.0_api(102) Laya3.0_文档(83) Laya2.0_api(82) Laya_示例(44) laya_api(25)
... 2019-05-13 0 0 分享 微博 QZONE 微信 bpmf_d 赞同来自: 选择scene以后会有这个功能的 2019-05-14 0 1 分享 微博 QZONE 微信 bingo 赞同来自: 这个是我做的prefab 2019-05-14 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先...
来源: Laya_社区 发布时间: 20190513
...; var resUrl = "../bin/res/modles/role_48_lurenyi/role_48_lurenyi.lh"; var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.position = new Laya.Vector3(0, 0, 10); camera.transform.rotate(new Laya.Vector3(0, 180, 0), true, fals...
来源: Laya_社区 发布时间: 20180503
...纹理 ```typescript if (Browser.onAndroid) URL.basePath = "res/threeDimen/scene/LayaScene_TextureGPUCompression/Android/"; else if (Laya.Browser.onIOS) URL.basePath = "res/threeDimen/scene/LayaScene_TextureGPUCompression/IOS/"; else URL.basePath = "res/threeDimen/scene/LayaScene_TextureGPUCompressi...
来源: Laya2.0_文档 发布时间: 20210714
...s.lights.length; i 加载场景,并且添加多光源 ```typescript Laya.Scene3D.load("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Laya.Handler.create(this, function (scene) { //添加到场景 Laya.stage.addChild(scene); var camera = scene.getChildByName("Main Camera"); camera...
来源: Laya2.0_文档 发布时间: 20210715
...s.lights.length; i 加载场景,并且添加多光源 ```typescript Laya.Scene3D.load("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Laya.Handler.create(this, function (scene) { //添加到场景 Laya.stage.addChild(scene); var camera = scene.getChildByName("Main Camera"); camera...
来源: Laya2.0_文档 发布时间: 20210715
...据 //读取地形图 this.aStarMap = Loader.getTexture2D("res/threeDimen/scene/TerrainScene/Assets/AStarMap.png"); //获得地图数据 var aStarArr = this.createGridFromAStarMap(this.aStarMap); //使用astar初始化地图数据 this.graph = new (window as any).Graph(aStarArr); this.opts = []; thi...
来源: Laya3.0_文档 发布时间: 20230303
加载场景文件bug . 直接 Scene.load("res/3d/scene/Main.ls"); Laya.stage.addChild(scene); 加载并创建加的场景显示和u3d里展示的一样, 用提前加载好资源在场景显示异常 2018-08-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20180805
...| Events Packagelaya.uiClasspublic class MoreGameInheritanceMoreGame View Scene Sprite Node EventDispatcher Object 游戏中心插件 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否激活。 Node activeInH...
来源: Laya2.0_api 发布时间: 20190513
...后的代码: import View=Laya.View; import Dialog=Laya.Dialog; import Scene=Laya.Scene; export module ui { export class AttackUI extends View { public btn_attack:Laya.Button; constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("Attack"); } } } 扩展UI代码: ...
来源: Laya_社区 发布时间: 20180926
...题 如果在回调函数中使用Laya.stage.addChild() ,而添加的是Scene,那么就会返回: Cannot read property 'addChild' of null,而同样是在这个函数中的添加2D内容,却不会报这个错误,这个问题有什么好的解决方案么 2017-07-30 添加评论 免费帖 ...
来源: Laya_社区 发布时间: 20170730