大约有 138 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0055 秒)
...景内 Laya.loader.load("girl/girl.lh").then(res => { let girl : Laya.Sprite3D = res.create(); this.scene3D.addChild(girl); //获得Animator this._animator = girl.getComponent<Laya.Animator>(Laya.Animator); }); this.on( Laya.Event.MOUSE_DOWN, this, this.switchAni ); } switchAni(): void { if...
来源: 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
...回复被折叠 要回复问题请先登录 发起人 dear_H 相关问题 sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale 缓动Tween能用在3D物体或者特效上面吗? 缓动动画SKEW-Y从0到360卡住 关于shader中opengl函数问题 想让一个2D的图形被...
来源: Laya_社区 发布时间: 20180109
...e3D)导出的时候被转换导出了。这种纹理需要采用预设(Sprite3D)分别导出,单独加载使用。 #### 2.2.2 LayaAirIDE纹理压缩功能 LayaAirIDE中依次点击 菜单 ->> 工具 ->> 纹理图片转换,可以打开图3所示界面。  (图3) 由于...
来源: Laya2.0_文档 发布时间: 20210714
...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
...了。 (图1-3) 不同的蓝图文件有不同的使用方式: 继承Sprite3D的蓝图直接拖到3D场景中使用 (也可拖到3D场景的层级目录)。 (图1-4) 继承UI派生类的蓝图直接拖到2D场景中使用 (也可以拖到2D场景的层级目录)。 (图1-5) 继...
来源: Laya3.0_文档 发布时间: 20251010
...export class TextInputControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.TextInput } ) public txtin: Laya.TextInput; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake():...
来源: Laya3.0_文档 发布时间: 20251010
...lass() 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
...ghtControl = Laya.loader.getRes("res/OculusController/controller.gltf") as Sprite3D; let leftControl = Laya.loader.getRes("res/OculusController/controller-left.gltf") as Sprite3D; let pixelright = new PixelLineSprite3D(20,"right"); let pixelleft = new PixelLineSprite3D(20,"left"); this.scene.addChil...
来源: Laya3.0_文档 发布时间: 20251010
...性标识的类型支持引擎对象类型(例如:Laya.Vector3、Laya.Sprite3D、Laya.Camera等)、自定义的对象类型(需要标记@regClass())、以及TS语言的基本类型。 2.5.1 引擎对象类型 引擎对象类型的理解比较简单,暴露组件属性之后,直接传...
来源: Laya3.0_文档 发布时间: 20251010