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

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

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

... @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();     } } 附件 : --> 2023-04-...

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

332. Sprite3D添加组件或脚本(JavaScript-3D基础(JS)-LayaAir3D之精灵) [ 49%]

....log("onAwake"); } onStart() { console.log("onStart"); } onUpdate() { this.owner.transform.rotate(this.rotation, false); } onLateUpdate() { console.log("onLateUpdate"); } } ``` 这样脚本就添加完成了,我们可以看下运行之后的效果: ![](img/2.gif)(图2)

来源: Laya2.0_文档 发布时间: 20210714

333. 内置骨骼动画 · LayaAir3.3 · 引擎文档 · LAYABOX [ 49%]

...ture.x = 300; this.mArmature.y = 350; this.mArmature.scale(0.5, 0.5); this.owner.addChild(this.mArmature); //设置动画播放完成后,调用completeHandler继续播放下一个动画 this.mArmature.on(Laya.Event.STOPPED, this, this.completeHandler); this.play(); }); } private completeHandler():...

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

334. [LayaAir3]给box设置filters,里面的spine无效或者无法显示 [ 49%]

...updateWorldTransform(); this.spineItem.render(this._currentPlayTime); this.owner.repaint(); } layabox • 2024-11-09 14:19 @136*****142:我们是用你的示例工程实测没问题的,可能是你不太会弄,给搞错了。那你联系右下角的引擎客服微信,要一个内部的安装...

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

335. Sprite3D添加组件或脚本(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 49%]

...log("onAwake"); } onStart() { console.log("onStart"); } onUpdate() { (this.owner as Laya.Sprite3D).transform.rotate(this.rotation, false); } onLateUpdate() { console.log("onLateUpdate"); } } ``` 这样脚本就添加完成了,我们可以看下运行之后的效果: ![](img/2.gif)(图2)

来源: Laya2.0_文档 发布时间: 20210715

336. laya.d3.core.particleShuriKen.ShurikenParticleSystem [ 49%]

... Show Inherited Public Methods MethodDefined By  ShurikenParticleSystem(owner:ShuriKenParticle3D)ShurikenParticleSystem  _beforeRender(state:RenderState):BooleanShurikenParticleSystem  _getIndexBuffer():IndexBuffer3DShurikenParticleSystem  _getVertexBuffer(index:int = 0):VertexBuffer3DShuri...

来源: laya_api 发布时间: 20170929

337. 精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 49%]

...= 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

338. 如何获取刚体碰撞前的刚体速度 [ 49%]

...ai 赞同来自: 试试覆写 Script的onTriggerEnter方法。 或者侦听owner的 Event.TRIGGER_ENTER 事件。   然而你台球游戏不是应该设置好每个物体的刚体属性,质量,碰撞属性,摩擦力等,只需要给白球施加一个力就可以吗?为什么还要自己去...

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

339. 2D相机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 49%]

...场景中查看效果 */ export class Script extends Laya.Script { declare owner : Laya.Scene; area2D: Laya.Area2D; camera2D: Laya.Camera2D; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.createCamera2D(); } createCamera2D...

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

340. 图像组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 49%]

....Image = new Laya.Image("resources/layaAir.png"); img.pos(165, 62.5); this.owner.addChild(img); } } Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:59 img{cursor:pointer}

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