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

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

21. 3D物理编辑 · LayaAir3.0文档 · LAYABOX [ 58%]

...动进入触发器的生命周期。 2.4.4 使用生命周期方法 创建Script3D脚本 生命周期的方法,只能在脚本类里使用,所以,我们需要创建一个脚本,3D游戏必须要继承3D的脚本Script3D。空脚本的示例代码如下: /** * TypeScript语言的3D脚本示...

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

22. 组件装饰器说明 · LayaAir3.0文档 · LAYABOX [ 58%]

...代码如下所示: const { regClass } = Laya; @regClass() export class Script extends Laya.Script { } 如动图1-1所示,只有使用了上述的这个装饰器标识,开发者定义的组件脚本才会被IDE识别为组件,可以被节点(实体)的属性设置面板 -> 增加...

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

23. 精灵 · LayaAir3.0文档 · LAYABOX [ 56%]

...代码: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Sprite }) public sprite1: Laya.Sprite; @property({ type: Laya.Sprite }) public sprite2: Laya.Sprite; constructor() { super(); } /** * 组件...

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

24. Laya3d球星添加了刚体,但是碰撞无法触发onTriggerEnter的问题,120元有偿悬赏解答 [ 56%]

...了些备注,其实主要原因是你用的是2D得触发,脚本得继承Script3D才行 ParadiseKiss • 2020-07-28 17:46 你是刚入门吧 zzhh9857 • 2020-07-28 17:49 @ParadiseKiss:是的,刚入门,现在正在学习 zzhh9857 • 2020-07-28 17:52 @ParadiseKiss:网上看的教程,看样...

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

25. 基础文本 · LayaAir3.0文档 · LAYABOX [ 54%]

...代码: const { regClass, property } = Laya; @regClass() 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}页"; //显示文本的初始化内容 } onSta...

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

26. 场景管理 · LayaAir3.0文档 · LAYABOX [ 49%]

...所示: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Button }) public uiBtn: Laya.Button; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ ...

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

27. 使用3D精灵 · LayaAir3.0文档 · LAYABOX [ 43%]

... const { regClass, property } = Laya; @regClass() export class CameraMoveScript extends Laya.Script3D { /** @private */ protected _tempVector3: Laya.Vector3 = new Laya.Vector3(); protected lastMouseX: number = 0; protected lastMouseY: number = 0; protected yawPitchRoll: Laya.Vector3 = new Laya.Vecto...

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

28. 动画状态机详解 · LayaAir3.0文档 · LAYABOX [ 41%]

...码如下: ... import Vector3 = Laya.Vector3; ... export class AnimationScript extends Laya.AnimatorStateScript { ... private model: Laya.Sprite3D; /**@internal */ setPlayScriptInfo(animator: Laya.Animator | Laya.Animator2D, layerindex: number, playstate: Laya.AnimatorState | Laya.AnimatorState2D)...

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

29. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 27%]

...上一杯红茶,写下了laya的故事。 工具及涉及:layaide+typescript+pomelo+tiledmap+其他工具 项目类型:mmorpg 人员:zom(客户端) + arrow(服务端) 进度:单机体验状态,实现 摇杆,切图,释放技能(由于人员和精力有限还需要处理公...

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