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

大约有 23 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0022 秒)

21. 2D拖尾渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 40%]

...** * 在节点上添加2D拖尾渲染器的示例代码 */ export class NewScript extends Laya.Script { declare owner: Laya.Sprite; private _trail2D: Laya.Trail2DRender; //从场景文件中获取到的宽度曲线数据 private _widthCurve: any[]; //从场景文件中获取到的颜色渐变数据 ...

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

22. Spine渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 35%]

... { regClass, property } = Laya; @regClass() export class Demo extends Laya.Script { spine: Laya.Spine2DRenderNode; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { // 加载Spine动画数据资源(json文件),注意一定...

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

23. 动画状态机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 27%]

...码如下: ... 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_文档 发布时间: 20251010