大约有 111 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0047 秒)
...器发出的事件,开发者可以在触发器物体上添加的脚本(Script3D)监听。监听的方法如图1所示: (图1) 碰撞器也是会派发事件的。监听方法如下图2: (图2) 下面我们来看下具体如何使用这些接口,本次代码节...
来源: Laya2.0_文档 发布时间: 20210714
...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
...物体挂在脚本的时候 比如有个脚本是: class Test extends Laya.Script3D{ } 如xxx是一个3D节点,代码里执行: let script:Test = xxx.addComponent(Test); 在web端没问题,在微信开发者工具里运行报错,已上传Demo项目 附件 : --> IdleDemo.zip 2020-03-09 ...
来源: Laya_社区 发布时间: 20200309
LayaAir IDE 1.4.0新增功能 附加(扩展)脚本的使用 .script和.prop脚本结合IDE在代码层的使用方式 2016-10-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: SONIC3D...
来源: Laya_社区 发布时间: 20161014
...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
...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
...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
...& (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
...过,通过Url获取具体脚本代码 if (moduleJs) { __JS__("var script = document.createElement('script');") __JS__(" script.type = 'text/javascript';") __JS__(" script.text = moduleJs;") __JS__(" document.body.appendChild(script);") } chunjine • 2017-03...
来源: Laya_社区 发布时间: 20161020
...an: 3.616943359375 ms add main_scene.ls add ui/ui.atlascfg add ../src/BuildScript.ts add ../src/Main.ts add ../src/storage/StorageProxy.ts add ~/internal/blueprint.bin add ~/internal/Box.lm add ~/internal/Capsule.lm add ~/internal/Cone.lm add ~/internal/Cylinder.lm add ~/internal/DefaultMaterial.lma...
来源: Laya_社区 发布时间: 20250102