大约有 225 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0040 秒)
...Script{ public title: string; constructor(){ super(); } public _initialize(owner: Laya.Sprite3D): void { super._initialize(owner); var sprite3D = this.owner as Laya.MeshSprite3D; var sprite3DMat = new Laya.StandardMaterial(); sprite3DMat.cull = Laya.BaseMaterial.CULL_NONE; var imageData = this.canva...
来源: Laya_社区 发布时间: 20180814
...= Laya; @regClass() export class Animation extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Animation }) //在IDE面板中显示属性 ani: Laya.Animation; constructor() { super(); } //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法...
来源: Laya3.0_文档 发布时间: 20251010
...aya; @regClass() export class LabelControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.Label } ) public lab: Laya.Label; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake...
来源: Laya3.0_文档 发布时间: 20251010
...nst view = pkgs[0].createObject("View"); console.log(view); this.owner.addChild(view.displayObject); }); } 我提出的問題是,Fairygui編輯器和Laya編輯器,使用BlendMode和濾鏡的效果不相同。 格局豬 - 趙唐豬豬 • 2025-09-08 12:29 我重新描述問題 需求: ...
来源: Laya_社区 发布时间: 20250829
... => { // 添加Spine渲染器组件到精灵节点上 this.spine = this.owner.addComponent(Laya.Spine2DRenderNode); this.spine.source = "girl2/mix-and-match-pro.json"; // 设置Spine动画数据源 this.spine.skinName = "full-skins/girl"; // 设置皮肤名称 this.spine.play("idle", false); // ...
来源: Laya3.0_文档 发布时间: 20251128
...s.skebqb.on(Laya.Event.STOPPED,this,this.changeSkin); this.owner.addChild(this.skebqb); this.skebqb.pos(500, 600); this.changeSkin(); } changeSkin(){ this.skebqb.replaceSlotSkinName("chuandiwu","","bianbian"); ...
来源: Laya_社区 发布时间: 20201231
...撞到的物体 // this.text.text = "碰撞到了" + outHitResult.collider.owner.name; console.log("碰撞到物体!!" + outHitResult.collider.owner.name) } 附件 : --> 射线选取实体的问题.zip 2019-12-19 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有找到相关结果...
来源: Laya_社区 发布时间: 20191219
...建文本组件 this.text = new Laya.Text(); this.text.pos(300, 260); this.owner.addChild(this.text); // 滚动条皮肤资源 var skins: any[] = []; skins.push("atlas/comp/hscroll.png", "atlas/comp/hscroll$bar.png", "atlas/comp/hscroll$down.png", "atlas/comp/hscroll$up.png"); Laya.loader.load(skins...
来源: Laya3.0_文档 发布时间: 20251010
...建文本组件 this.text = new Laya.Text(); this.text.pos(300, 260); this.owner.addChild(this.text); // 滚动条皮肤资源 var skins: any[] = []; skins.push("atlas/comp/vscroll.png", "atlas/comp/vscroll$bar.png", "atlas/comp/vscroll$down.png", "atlas/comp/vscroll$up.png"); Laya.loader.load(skins...
来源: Laya3.0_文档 发布时间: 20251010
...到的物体 this.text.text = "碰撞到了" + this.outHitResult.collider.owner.name ; console.log("碰撞到物体!!") } } ``` (图2)
来源: Laya2.0_文档 发布时间: 20210715