大约有 412 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0056 秒)
...///D:/LayaTest/TestHtml2.2.0/bin/libs/laya.html.js:1399:37) at TestHtml.onAwake (file:///D:/LayaTest/TestHtml2.2.0/bin/js/bundle.js:27:34) at TestHtml._activeHierarchy (file:///D:/LayaTest/TestHtml2.2.0/bin/libs/laya.core.js:12332:22) 附件 : --> TestHtml2.2_.0_.zip 2019-10-28 添加评论 ...
来源: Laya_社区 发布时间: 20191028
...此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { //初始化树状列表的数据源 let treeData: string = "<data>"; //给Tree列表赋值 treeData += "<dir label='box1' isOpen='true'>" + "<file label='child1 ' />" + "<file label='child...
来源: Laya3.0_文档 发布时间: 20251010
...rivate logger: Laya.TextArea; private text: Laya.Label = new Laya.Label(); onAwake(): void { this.initUI(); this.connect(); } /** * 初始化UI */ private initUI(): void { this.showLogger(); this.text.text = "请查看源码和调试信息,了解如何使用"; this.text.color = "#FFFFFF"; this.tex...
来源: Laya3.0_文档 发布时间: 20251010
...期的秒数 private displayText: Laya.Text; // 文本显示当前时间 onAwake(): void { this.lightComp = this.owner.getComponent(Laya.DirectionLight2D); // 初始化文本组件 this.displayText = new Laya.Text(); this.displayText.color = "#ffffff"; this.displayText.font = "Arial"; this.displayTe...
来源: Laya3.0_文档 发布时间: 20251010
...时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { //小游戏加载分包 Laya.loader.loadPackage("sub1", this.printProgress).then(() => { Laya.loader.load("sub1/Cube.lh").then((res: Laya.PrefabImpl) => { let sp3: Laya.Sprite3D = res.create() as Laya.Sp...
来源: Laya3.0_文档 发布时间: 20251010
...两次,也可以做到。我修改了您demo中的部分代码: onAwake(): void { Laya.stage.on(Laya.Event.MOUSE_DOWN, () => { Laya.loader.load("resources/916.mp4").then(() => { this.play(); }); }) ...
来源: Laya_社区 发布时间: 20231007
... * @inheritDoc */ /*override*/ onAwake(): void { this.camera = (<Laya.Camera>this.owner); } /** * @inheritDoc */ /*override*/ onUpdate(): void { ...
来源: Laya_社区 发布时间: 20200707
... 增加缩放速度 private intensity: number = 1.8; // 定义灯光强度 onAwake(): void { // 获取 FreeformLight2D 组件 this.lightComp = this.owner.getComponent(Laya.FreeformLight2D); //灯光的顶点通常建议是在IDE中可视化配置,这里是为了演示如何通过代码动态设置...
来源: Laya3.0_文档 发布时间: 20251010
...ends MainBase { private _animator: Laya.Animator; private _isRun: boolean; onAwake() { console.log("Game start"); //加载指定的模型预制体,并添加到Scene3D场景内 Laya.loader.load("girl/girl.lh").then(res => { let girl : Laya.Sprite3D = res.create(); this.scene3D.addChild(girl); //...
来源: Laya3.0_文档 发布时间: 20251010
...normalizedViewportPointToRay off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once recoverRenderContext3D removeAllLayers removeChild removeChildAt removeChildByName removeChildren removeCommandBuffer removeCommandBuffers removeLayer removeSelf render replaceChild r...
来源: Laya3.0_api 发布时间: 20231115