大约有 17 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0050 秒)
...Sprite时,不能将3D节点作为其属性值。当设置为3D节点Laya.Sprite3D时,不能将2D节点作为其属性值。 1.1 2D节点的使用 首先,如动图1-1所示,将场景中已经添加好的2D节点Sprite拖入到@property暴露的属性入口中,这样就获取到了此节点...
来源: Laya3.0_文档 发布时间: 20251010
...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_文档 发布时间: 20251010
... export default class DirectMove extends Laya.Script { declare owner: Laya.Sprite3D; private characterController: Laya.CharacterController; onAwake(): void { // 获取 角色控制器 组件并赋值给 characterController this.characterController = this.owner.getComponent(Laya.CharacterController);...
来源: Laya3.0_文档 发布时间: 20251010
...egClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { //...
来源: Laya3.0_文档 发布时间: 20251010
...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_文档 发布时间: 20251010
...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_文档 发布时间: 20251010
...用预制体,在Assets下创建预制体,双击打开预制体后,在Sprite3D节点下通过鼠标右键来创建3D粒子 (图2.1.2) 三、3D粒子的使用 3D粒子的使用由三部分构成 粒子系统组件 粒子渲染模块 粒子着色器 (图3.0)从图3.0中看到,当创建...
来源: Laya3.0_文档 发布时间: 20251010
...用预制体,在Assets下创建预制体,双击打开预制体后,在Sprite3D节点下通过鼠标右键来创建3D粒子 (图2.1.2) 三、3D粒子的使用 3D粒子的使用由三部分构成 粒子系统组件 粒子渲染模块 粒子着色器 (图3.0)从图3.0中看到,当创建...
来源: Laya3.0_文档 发布时间: 20250104
...列表对象的基类。2D 的基础精灵 Sprite 和 3D 的基础精灵 Sprite3D 都继承自 Node。不仅如此,所有继承自 Node 的子类或孙类对象,统称为“节点”,如:Sprite 节点、Image 节点等。 只有继承自 Node 的对象,才具备添加子节点的能力。 ...
来源: Laya3.0_文档 发布时间: 20251010
...Sprite时,不能将3D节点作为其属性值。当设置为3D节点Laya.Sprite3D时,不能将2D节点作为其属性值。 4.1.1 2D节点的使用 首先,如动图4-1所示,将场景中已经添加好的2D节点Sprite拖入到@property暴露的属性入口中,这样就获取到了此节...
来源: Laya3.0_文档 发布时间: 20251010