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

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

41. 物理碰撞脚本和触发器脚本(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 74%]

...器发出的事件,开发者可以在触发器物体上添加的脚本Script3D)监听。监听的方法如图1所示: ![](img/1.png)(图1) 碰撞器也是会派发事件的。监听方法如下图2: ![](img/2.png)(图2) 下面我们来看下具体如何使用这些接口,本次代码节...

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

42. 物理碰撞脚本和触发器脚本(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 74%]

...器发出的事件,开发者可以在触发器物体上添加的脚本Script3D)监听。监听的方法如图1所示: ![](img/1.png)(图1) 碰撞器也是会派发事件的。监听方法如下图2: ![](img/2.png)(图2) 下面我们来看下具体如何使用这些接口,本次代码节...

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

43. 为什么创建的脚本 变量在编辑模式赋值后 运行时为undfined [ 73%]

...24 18:14 写一个ts文件,写上 export default class Move extends Laya.Script{ /** @prop {name:target,tips:"目标容器",type:Prefab}*/ targetPrefab:Laya.Prefab; } 将文件在编辑模式下赋给点添加组件=》code=》move 然后创建一个box拖为预制体 放在工程 Scenes...

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

44. 发布微信小游戏运行错误,Class constructor xx cannot be invoked without 'new' [ 73%]

...物体挂在脚本的时候 比如有个脚本是: class Test extends Laya.Script3D{ }   如xxx是一个3D节点,代码里执行: let script:Test = xxx.addComponent(Test);   在web端没问题,在微信开发者工具里运行报错,已上传Demo项目 附件 : --> IdleDemo.zip 2020-03-09 ...

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

45. LayaAir IDE 1.4.0新增功能 附加(扩展)脚本使用 [ 72%]

LayaAir IDE 1.4.0新增功能 附加(扩展)脚本使用 .script和.prop脚本结合IDE在代码层的使用方式 2016-10-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: SONIC3D...

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

46. laya2.0 编辑器不显示父类变量 [ 72%]

...a2.0 编辑器不显示父类变量 举个粒子 class Parent extends Laya.Script{ /** @prop {name:name, type:string}*/ public name; } class Child extends Parent{} 在编辑器中给对象挂child脚本,并没有显示父类的name对象。 2018-12-13 添加评论 免费帖 --> 分享 微博 QZONE...

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

47. 单选框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 72%]

...Radio: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Radio }) public radio: Laya.Radio; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.radio.skin = "...

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

48. 资源加载 · LayaAir3.3 · 引擎文档 · LAYABOX [ 72%]

...Class, property } = Laya; @regClass() export class LoaderDemo extends Laya.Script { onAwake(): void { this.loadTexture("resources/image/monkey2.png", 500);//需要在resources/image放入相应的资源 this.loadTexture("https://layaair.com/3.x/demo/resources/res/apes/monkey2.png"); } /**加载并...

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

49. 3D 鼠标检测 错乱 [ 72%]

...& (Laya.Stat.loopCount > mouseTouch._pressedLoopCount)){ var pressedScripts=pressedSprite._scripts; if (pressedScripts){ for (j=0,m=pressedScripts.length;j < m;j++) pressedScripts[j].onMouseDrag(); } }; var touchSprite=mouseTouch.sprite; if (touchSprite){ var scripts=touchSprite._scripts; ...

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

50. 位图切片组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 71%]

...Clip: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Clip }) public clip: Laya.Clip; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.clip.pos(Laya.stag...

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