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

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

1. 视频 · LayaAir3.3 · 引擎文档 · LAYABOX [ 100%]

... @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节点 this.videoP...

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

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

...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_文档 发布时间: 20240910

3. 基础文本 · LayaAir3.3 · 引擎文档 · LAYABOX [ 79%]

...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_文档 发布时间: 20240910

4. 使用3D摄像机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 77%]

...default class CameraControll extends Laya.Script { @property( { type: Laya.Sprite3D } ) public target: Laya.Sprite3D; private camera: Laya.Camera; public distanceUp: number = 0.5;//相机与目标竖直高度参数 public distanceAway: number = 10;//相机与目标水平距离参数 public smo...

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

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

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

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

6. 多行输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 67%]

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

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

7. 3D粒子 · LayaAir3.3 · 引擎文档 · LAYABOX [ 48%]

...用预制体,在Assets下创建预制体,双击打开预制体后,在Sprite3D节点下通过鼠标右键来创建3D粒子 (图2.1.2) 三、3D粒子使用 3D粒子使用由三部分构成 粒子系统组件 粒子渲染模块 粒子着色器 (图3.0)从图3.0中看到,当创建...

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

8. 3D粒子编辑模块 · LayaAir3文档 · LAYABOX [ 48%]

...用预制体,在Assets下创建预制体,双击打开预制体后,在Sprite3D节点下通过鼠标右键来创建3D粒子 (图2.1.2) 三、3D粒子使用 3D粒子使用由三部分构成 粒子系统组件 粒子渲染模块 粒子着色器 (图3.0)从图3.0中看到,当创建...

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

9. 自定义3D Shader · LayaAir3.3 · 引擎文档 · LAYABOX [ 40%]

...属GLSL文件(高阶操作不推荐直接使用) u_WorldMat 世界矩阵 Sprite3DCommon.glsl u_ProjectionParams(near, far, invert, 1 / far) 投影参数 Camera.glsl u_Viewport(x, y, width, height) 视口 Camera.glsl u_CameraDirection 相机方向 Camera.glsl u_CameraUp 相机上朝向 Camera.glsl u_...

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