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

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

71. 场景管理 · LayaAir3.0文档 · LAYABOX [ 58%]

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

72. 实体组件系统 · LayaAir3.0文档 · LAYABOX [ 57%]

...性标识的类型支持引擎对象类型(例如:Laya.Vector3、Laya.Sprite3DLaya.Camera等)、自定义的对象类型(需要标记@regClass())、以及TS语言的基本类型。 3.2.5.1 引擎对象类型 引擎对象类型的理解比较简单,暴露组件属性之后,直接...

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

73. 预制体模块 · LayaAir3.0文档 · LAYABOX [ 57%]

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

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

74. 3D中如何限制角色的行走区域? [ 57%]

...ture2D, priority:1, params:[true]}        场景中初始化MeshTerrainSprite3D:               //通过场景中子父级节点寻找可行走区域网格模型               var meshSprite3D:MeshSprite3D = sceneSprite3d.getChildAt(0).getChildAt(0).getChildAt(13) as MeshSprite3D;...

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

75. 通用发布 · LayaAir3.0文档 · LAYABOX [ 56%]

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

76. 基础文本 · LayaAir3.0文档 · LAYABOX [ 56%]

...lass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Text }) txt: Laya.Text; constructor() { super(); } onAwake(): void { this.txt.text = "第{n=1}页"; //显示文本的初始化内容 } onStart(): void { let page: number = 1; Laya.timer.frameL...

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

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

...景内 Laya.loader.load("girl/girl.lh").then(res => { let girl : Laya.Sprite3D = res.create(); this.scene3D.addChild(girl); //获得Animator this._animator = girl.getComponent<Laya.Animator>(Laya.Animator); }); this.on( Laya.Event.MOUSE_DOWN, this, this.switchAni ); } switchAni(): void { if...

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

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

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

79. Tween 缓动过程有触发回调函数么 [ 55%]

...回复被折叠 要回复问题请先登录 发起人 dear_H 相关问题 sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale 缓动Tween能用在3D物体或者特效上面吗? 缓动动画SKEW-Y从0到360卡住 关于shader中opengl函数问题 想让一个2D的图形被...

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

80. 显示文本组件 · LayaAir3.0文档 · LAYABOX [ 54%]

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

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