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

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

1. 微信小游戏 · LayaAir3.0文档 · LAYABOX [ 100%]

...egClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { //...

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

2. 3D基础显示对象 · LayaAir3.0文档 · LAYABOX [ 98%]

...用于创建简单网格 注意:这里还不是最终场景中看到 Sprite3D。 用 createBox 来举例,看下API是如何创建网格: /** * 创建Box网格。 * @param long 半径 * @param height 垂直层数 * @param width 水平层数 * @return */ static createBox(long: number = 1, ...

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

3. 抖音小游戏 · LayaAir3.0文档 · LAYABOX [ 96%]

...egClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { //...

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

4. 预制体模块 · LayaAir3.0文档 · LAYABOX [ 91%]

... (动图2-4) 不同是,双击打开预制体3D,根节点是“Sprite3D”,也就是我们需要创建3D精灵对象。同时图2-5右面是默认IDE场景,用了IDE自带天空盒 (图2-5) 2.3 修改预制体编辑场景 开发者可以通过如下方式来更换3D预...

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

5. 场景管理 · LayaAir3.0文档 · LAYABOX [ 89%]

...lass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Prefab }) private loadingScenePrefab: Laya.Prefab; private loadingScene: Laya.Node; constructor() { super(); } /** * 第一次执行update之前执行,只会执行一次 */ onStart(): void {...

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

6. vivo小游戏 · LayaAir3.0文档 · LAYABOX [ 81%]

...egClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { //...

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

7. 支付宝小游戏 · LayaAir3.0文档 · LAYABOX [ 80%]

...der.load("sub1/Cube.lh").then((res: Laya.PrefabImpl) => { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) Laya.loader.loadPackage("sub2", this.printProgress).then(() => { Laya.loader.load("sub2/Sphere.lh").then((res: any) => { let sp3 = res.create(...

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

8. 视频节点 · LayaAir3.0文档 · LAYABOX [ 77%]

...lass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { let video = new Laya.VideoNode; //添加到舞台 Laya.stage....

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

9. 通用发布 · LayaAir3.0文档 · LAYABOX [ 72%]

...egClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { //We...

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

10. 多行输入文本组件 · LayaAir3.0文档 · LAYABOX [ 70%]

... export class TextAreaControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.TextArea } ) public txtarea: Laya.TextArea; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake():...

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