大约有 383 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0045 秒)
...此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { //初始化树状列表的数据源 let treeData: string = "<data>"; //给Tree列表赋值 treeData += "<dir label='box1' isOpen='true'>" + "<file label='child1 ' />" + "<file label='child...
来源: Laya3.0_文档 发布时间: 20230828
...时所有节点和组件均已创建完毕,此方法只执行一次 */ 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_文档 发布时间: 20240528
...两次,也可以做到。我修改了您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
...ss, property } = Laya; @regClass() export class Main extends Laya.Script { onAwake(): void { let img = new Laya.Image; Laya.stage.addChild(img); img.pos(500,100); img.skin = "resources/layabox.png"; //纹理压缩的图片的路径 } onStart() { Laya.Stat.show(0, 0); //性能面板 } } 发布后,...
来源: Laya3.0_文档 发布时间: 20231219
...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_文档 发布时间: 20240528