大约有 1,133 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0054 秒)
...NE 微信 176*****518 赞同来自: 新场景的 绑定的js 继承的Laya.Script,怎么获取到传过来的参数呢? 2020-11-05 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 嘿哈 相关问题 2.0一不小心删了bin目录下...
来源: Laya_社区 发布时间: 20181022
...eoNode: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.VideoNode }) public video: Laya.VideoNode; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 ...
来源: Laya3.0_文档 发布时间: 20250103
...如下: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { // 获得Image组件 @property({ type: Laya.Image }) public img: Laya.Image; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void {...
来源: Laya3.0_文档 发布时间: 20240910
...lliderShape(1,1,1); } } export default class BoxMove extends Laya.Script { constructor() { super(); } onTriggerEnter() { console.log("111"); } onTriggerStay() { console.log("111"); } onTriggerExit() { console.log("111"); } onEnable() { } onDisable() { } } //这是两个类,直接可...
来源: Laya_社区 发布时间: 20190314
...逻辑控制的入口。 开发者通过继承引擎的组件脚本类Laya.Script,可以实现组件系统脚本的完整功能,我们通常将组件系统脚本简称为组件脚本。然后通过IDE或者代码的方式添加到实体上,实现完整的ECS功能。 组件脚本,在原则...
来源: Laya3.0_文档 发布时间: 20250103
...,请谨慎操作--> <!--jsfile--startTag--> <script src="js/zhcLib/tools/utils/Vector3Utils.js"></script> <!--jsfile--endTag--> 这里面的js都是自动加进去的,怎么自定义的呢?(不要把所有的都弄进去) 2017-11-13 添加...
来源: Laya_社区 发布时间: 20171113
...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
...34.00] 05-16 15:59:49.171 7562-7577/com.dihong.testdcc I/LayaBox: Start js scripts/apploader.js 05-16 15:59:49.215 7562-7562/com.dihong.testdcc W/ContextImpl: Implicit intents with startService are not safe: Intent { act=com.nvidia.ControllerMapper.START_SERVICE } android.content.ContextWrapper.bind...
来源: Laya_社区 发布时间: 20190516
...ing 赞同来自: 如果是第三方js类库,请先再index.html下通过script标签引入下,参照layaAir对js文件的引用方式 <script src='LayaAirDemo.max.js' loader='laya'></script> 第三方的js文件下载layaAir主js文件之上,确保第三方js文件加载完成 如...
来源: Laya_社区 发布时间: 20170417
...件时,需要物体使用`addComponent`方法。 (图1) **Script3D** 这是3D世界中的脚本,继承自组件,是组件的一种。该类被定义为 '抽象类' ,不允许实例。该类提供了一系列虚方法。详细使用可以去API中查看([地址](https://layaair....
来源: Laya2.0_文档 发布时间: 20210714