大约有 18 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0051 秒)
...1.6 使用Options。1.7 预制体/场景的问题1.8 旧版本引擎load和create的兼容性问题1.9扩展Loader能力2、关于动态加载IDE里的资源说明3、LayaAir3.0 输入处理模块修改3.1 2D和3D统一接口,3.2 2D能对3D正确遮挡。3.3 新增 MOUSE_DRAG和MOUSE_DRAG_END3.4 ...
来源: Laya3.0_文档 发布时间: 20230406
...ise<Scene> { Scene.showLoadingPage(); return Scene.load(url, Handler.create(null, this._onSceneLoaded, [closeOther, complete, param]), progress); } (图2-1) 例如创建名为 OpenScene 的场景,保存在assets路径下 uiDemo/page/OpenScene.ls,代码中可以这样打开场景,同...
来源: Laya3.0_文档 发布时间: 20241014
...//加载相机天空盒材质 Laya.Material.load("sky2.lmat", Laya.Handler.create(null, function(mat: any) { //修改天空盒渲染器的天空盒材质 skyRenderer.material = mat; })); 2.3 IDE中创建天空盒 2.3.1 更改IDE默认的球形天空盒 当我们用IDE场景一个3D场景时,默认...
来源: Laya3.0_文档 发布时间: 20241014
...Cube.lh").then((res: Laya.PrefabImpl) => { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) Laya.loader.loadPackage("sub2", this.printProgress).then(() => { Laya.loader.load("sub2/Sphere.lh").then((res: any) => { let sp3 = res.create(); this.scene3d...
来源: Laya3.0_文档 发布时间: 20241014
...Cube.lh").then((res: Laya.PrefabImpl) => { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) Laya.loader.loadPackage("sub2", this.printProgress).then(() => { Laya.loader.load("sub2/Sphere.lh").then((res: any) => { let sp3 = res.create(); this.scene3d...
来源: Laya3.0_文档 发布时间: 20241014
...tor.panel("Test") export class MyPanel extends IEditor.EditorPanel { async create() { this._panel = await gui.UIPackage.createWidget("editorResources/UI/MyWidget.widget"); let input: gui.TextInput = this._panel.getChild("TextInput").getChild("title"); input.on("changed", () => { console.log("改...
来源: Laya3.0_文档 发布时间: 20241014
...Cube.lh").then((res: Laya.PrefabImpl) => { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) Laya.loader.loadPackage("sub2", this.printProgress).then(() => { Laya.loader.load("sub2/Sphere.lh").then((res: any) => { let sp3 = res.create(); this.scene3d...
来源: Laya3.0_文档 发布时间: 20241014
...mber = 1, percent?: boolean): DrawRectCmd { return this.addCmd(DrawRectCmd.create(x, y, width, height, fillColor, lineColor, lineWidth, percent)); } 代码示例: let sp = new Laya.Sprite(); //画矩形 sp.graphics.drawRect(20, 20, 100, 50, "#ffff00", "#00ff00", 5, false); this.owner.addChild(sp);...
来源: Laya3.0_文档 发布时间: 20241014
...Cube.lh").then((res: Laya.PrefabImpl) => { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) Laya.loader.loadPackage("sub2", this.printProgress).then(() => { Laya.loader.load("sub2/Sphere.lh").then((res: any) => { let sp3 = res.create(); this.scene3d...
来源: Laya3.0_文档 发布时间: 20241014
...or multiple files to load * @param {Root} root Root namespace, defaults to create a new one if omitted. * @param {LoadCallback} callback Callback function * @returns {undefined} * @see {@link Root#load} */ function load(filename, root, callback) { if (typeof root === "function") { callback = root; r...
来源: Laya3.0_文档 发布时间: 20241014