大约有 384 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0047 秒)
...///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_文档 发布时间: 20241014
...时所有节点和组件均已创建完毕,此方法只执行一次 */ 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_文档 发布时间: 20241014
...两次,也可以做到。我修改了您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
...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_文档 发布时间: 20230303
...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
...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
...: 2023-07-17 17:12 浏览: 3508 关注: 3 人 逸辰 • 2023-07-19 22:52 onAwake(): void { Laya.loader.load( //先加载本场景要用的 ["resources/UI/image.png", "resources/UI/progress.png", "resources/UI/progress$bar.png","resources/UI/images/dsgame/banner2.j...
来源: Laya_社区 发布时间: 20230713
...时所有节点和组件均已创建完毕,此方法只执行一次 */ 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_文档 发布时间: 20241014