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

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

11. 2D自由形态光 · LayaAir3.3 · 引擎文档 · LAYABOX [ 74%]

...s } = Laya; @regClass() export class LightEffectDemo extends Laya.Script { declare owner: Laya.Sprite; private lightComp: Laya.FreeformLight2D; private rotateSpeed: number = 2; // 增加旋转速度 private scaleTime: number = 0; private scaleSpeed: number = 3; // 增加缩放速度 private intensit...

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

12. 视频 · LayaAir3.3 · 引擎文档 · LAYABOX [ 74%]

...用视频纹理 */ @regClass() export class Script extends Laya.Script { declare owner: Laya.Sprite3D; @property(Laya.Scene3D) private scene: Laya.Scene3D; private videoPlane: Laya.Sprite3D; private videoTexture = new Laya.VideoTexture(); onAwake(): void { //获取场景中要添加视频纹理的3D...

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

13. 升级到3.0-beta6无法选择资源了 [ 70%]

...如下: @regClass() export class NewScript extends Laya.Script {     //declare owner : Laya.Sprite3D;      @property(String)     public text: string = "";      @property(Laya.Image)     public image: Laya.Image = null;      constructor() {         super();     } } 附件 : -->...

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

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

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

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

15. 显示文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 65%]

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

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

16. 自动图集配置 · LayaAir3.3 · 引擎文档 · LAYABOX [ 64%]

...roperty } = Laya; @regClass() export class NewScript extends Laya.Script { declare owner: Laya.Image; //组件被启用后执行,例如节点被添加到舞台后 onEnable(): void { //需要先加载图集再使用,注意,图集要放到resources目录下或者在构建发布配置项里手动...

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

17. 视频节点 · LayaAir3.3 · 引擎文档 · LAYABOX [ 64%]

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

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

18. 输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 62%]

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

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

19. 精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 59%]

...perty } = 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_文档 发布时间: 20251010

20. 2D灯光与网格 · LayaAir3.3 · 引擎文档 · LAYABOX [ 57%]

...roperty } = Laya; @regClass() export class lightTest extends Laya.Script { declare owner: Laya.Sprite; @property({ type: Laya.Sprite }) light1: Laya.Sprite; @property({ type: Laya.Sprite }) mesh1: Laya.Sprite; @property({ type: Laya.Sprite }) mesh2: Laya.Sprite; private light1Render: Laya.FreeformLi...

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