大约有 72 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0061 秒)
...行类中实例化这两个UI界面,代码如下所示: ```typescript import GameConfig from "./GameConfig"; class Main { constructor() { //根据IDE设置初始化引擎 if (window["Laya3D"]) Laya3D.init(GameConfig.width, GameConfig.height); else Laya.init(GameConfig.width, GameConfig.height, L...
来源: Laya2.0_文档 发布时间: 20210715
... Laya.timer.loop(100, this, loading.changeValue); }); 进度条代码: import Handler = Laya.Handler; export class Onloading extends ui.LoadingUI{ constructor(){ super(); this.loadingBar.changeHandler = new Handler(this, this.onChange); } public changeValue():void...
来源: Laya_社区 发布时间: 20180524
...请: 与内容相关的链接 提交 5 个回复 Laya_Aaron 赞同来自: import { ui } from "./../ui/layaMaxUI"; /** * 本示例采用非脚本的方式实现,而使用继承页面基类,实现页面逻辑。在IDE里面设置场景的Runtime属性即可和场景进行关联 * 相比脚本方...
来源: Laya_社区 发布时间: 20181227
...是?然后"被引用"是指入口文件选中的脚本里代码import引用的文件? layaAir小孟 • 2024-12-02 20:37 是前者,.bundledef所在的目录。不用那么复杂,简单理解就可以:MyModule.bundledef在哪个目录,就会把该目录所有文件都打包。...
来源: Laya_社区 发布时间: 20241202
...protobufjs第三方库,报错找不到文件 Laya2.0 在Main.ts里:import protoAll = require("../libs/protoAll"); var pCls = protoAll.com.bee.protobuf.ClimbingTowerInfoProto; var p: protoAll.com.bee.protobuf.ClimbingTowerInfoProto = pCls.create(); p.curId = 10; p.isSecondPass = true; 用了...
来源: Laya_社区 发布时间: 20190227
...s/music/test/FY-0079.wav"); }); } } import { JsonTool } from "src/tools/JsonTool"; import { ResourceManager } from "./ResourceManager"; declare function testmusic_cn_ios(accountId: string): void; enum SoundType { BGM, Effect, Dialogue, } expor...
来源: Laya_社区 发布时间: 20250930
...ned 请问2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 从unity导出的场景透贴和模型烘焙的灯光不显示,请问有知道是什么原因的吗?~~~~~~~~~~~~~ 问题状态 最新活动: 2019-12-25 20:41 浏览: 1933 关注: 3 人 Chenyazhi • ...
来源: Laya_社区 发布时间: 20180503
...啊 请问2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 关于逻辑贞更新间隔机制、时间和其他一些Timer相关的问题 关于Dialog遮罩层移除解决问题的说明 LayaAirIDE1.4版本里用TS引擎库使用view嵌套发布html5报"Uncaught ...
来源: Laya_社区 发布时间: 20151028
...ility.ts:4:18 Currently module for 'liblaya.so' is not verified. If you're importing napi, its verification will be enabled in later SDK version. Please make sure the corresponding .d.ts file is provided and the napis are correctly declared. WARN: ArkTS:WARN File: /Users/HonestQiao/Documents/Laya/La...
来源: Laya_社区 发布时间: 20250106
...码中,可以看到,通过预加载一组预制体的实现代码: import { LoadingRTBase } from "./LoadingRT.generated"; const { regClass, property } = Laya; @regClass() export default class LoadingRT extends LoadingRTBase { onAwake(): void { Laya.loader.load( //先加载本场景要用的 ["...
来源: Laya3.0_文档 发布时间: 20241014