• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 383 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0045 秒)

221. 树状列表组件 · LayaAir3.0文档 · LAYABOX [ 48%]

...此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { //初始化树状列表的数据源 let treeData: string = "<data>"; //给Tree列表赋值 treeData += "<dir label='box1' isOpen='true'>" + "<file label='child1 ' />" + "<file label='child...

来源: Laya3.0_文档 发布时间: 20230828

222. 微信小游戏 · LayaAir3.0文档 · LAYABOX [ 47%]

...时所有节点和组件均已创建完毕,此方法只执行一次 */ 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

223. videoNode在安卓上不能播放 [ 46%]

...两次,也可以做到。我修改了您demo中的部分代码:     onAwake(): void {         Laya.stage.on(Laya.Event.MOUSE_DOWN, () => {             Laya.loader.load("resources/916.mp4").then(() => {                 this.play();             });         })  ...

来源: Laya_社区 发布时间: 20231007

224. 2.0版本可用的CameraMoveScript.ts [ 46%]

...      * @inheritDoc          */         /*override*/ onAwake(): void {         this.camera = (<Laya.Camera>this.owner);     }          /**          * @inheritDoc          */         /*override*/ onUpdate(): void {        ...

来源: Laya_社区 发布时间: 20200707

225. 模型与动画的导入使用 · LayaAir3.0文档 · LAYABOX [ 44%]

...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

226. laya.d3.core.Camera_API3.0 [ 43%]

...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

227. 纹理压缩 · LayaAir3.0文档 · LAYABOX [ 43%]

...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

228. laya.d3.webxr.core.WebXRCamera_API3.0 [ 42%]

...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

229. 报无法找到资源,未升级ide之前不报错 [ 42%]

...: 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

230. 抖音小游戏 · LayaAir3.0文档 · LAYABOX [ 40%]

...时所有节点和组件均已创建完毕,此方法只执行一次 */ 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