大约有 187 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0073 秒)
...件,并且启动预览 但是问题在于,如果我还打开了多个prefab进行编辑,当页签选中的是某个prefab,而不是场景时,运行预览就会运行prefab的预览,而不是scene。 已尝试使用Editor.sceneManager.setActiveScene接口,并无效果 请问我还...
来源: Laya_社区 发布时间: 20250716
...、代码中使用属性4.1 节点类型方式4.2 组件类型的使用4.3 Prefab类型属性实体组件系统(ECS) Author:Charley 、谷主、孟星煜 1、基础概念 1.1 什么是ECS ECS是Entity-Component-System(实体-组件-系统)的简写,这是一种基于数据驱动的游戏...
来源: Laya3.0_文档 发布时间: 20251010
... Laya.URL.basePath = "http://cdn.test.com/smallGame/"; var res3D = ["./Prefab/Conventional/NewBuilds.lh", "./LayaScene_111/Conventional/smoke.lh"]; Laya.loader.create(res3D, Laya.Handler.create(this, this.createBuild));这句子去获取资源,然后用 Laya.Loader.getRes("./Prefab/Convention...
来源: Laya_社区 发布时间: 20190702
...10-27 16:23 在label预制体的脚本上指定intType时,绑定了当前prefab内的testLab,当加入到场景时,脚本内实际关联的intType仍是预制体内那个testLab,所以只会有一个生效,您可以在场景内重新指定脚本对应的intType即可;使用getChildByName...
来源: Laya_社区 发布时间: 20211026
... enabled hideFlags id lightmapIndex lightmapScaleOffset material materials prefab ratioIgnor receiveShadow reflectionMode renderMode renderNode renderbitFlag resolutionRate scale sharedMaterial sharedMaterials sprite volume Methods _applyReflection _cloneTo _getCameraDistance _initialize _setOwner d...
来源: Laya3.0_api 发布时间: 20231115
...entPane = ((await Laya.loader.load("Examples/windows/Window1.lh")) as Laya.Prefab).create(); window.show(); 也可以扩展GWindow类使用: class MyWindow extends Laya.GWindow { protected onInit() { this.contentPane = ((await Laya.loader.load("Examples/windows/Window1.lh")) as Laya.Prefab).create...
来源: Laya3.0_文档 发布时间: 20251010
...Component,经代码修改其属性(不是人手修改)之后,保存prefab无变化,重新打开prefab发现改动丢失 VBOX HBOX 的文档太少了,都不知道这两个怎么用?到底和box有什么区别?不是普通的容器吗?增加了什么功能呢? android 新版打包...
来源: Laya_社区 发布时间: 20250324
... } else if (type === Loader.PREFAB) { var prefab = new Prefab(); prefab.json = data; this.complete(prefab); } ...
来源: Laya_社区 发布时间: 20201130
...么就先定义一个脚本代码,加入可能拖入loading场景的Laya.Prefab属性,代码如下: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Prefab }) private loadingScenePrefab: Laya.P...
来源: Laya3.0_文档 发布时间: 20251010
...ildByName("Levels Parent"); // Laya.Sprite3D.load("res/prefabs/Conventional/prefabs.lh", Laya.Handler.create(null, function (sp) { // lv.addChild(sp); // console.log("添加预制体"); // })); ...
来源: Laya_社区 发布时间: 20220506