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

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

221. 两个移动的简单物体 onTriggerEnter 无法触发 (有悬赏) [ 54%]

...nTriggerEnter,   export default class BulletControlTrigger extends Laya.Script3D { constructor(){ super(); }  /** * 开始触发时执行 * 此方法为虚方法,使用时重写覆盖即可 */ onTriggerEnter(other){ console.log("onTriggerEnter"); };  onTriggerStay(other){ console.log("onTrigg...

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

222. 2D方向光 · LayaAir3.3 · 引擎文档 · LAYABOX [ 54%]

... const { regClass } = Laya; @regClass() export class DayNight extends Laya.Script { declare owner: Laya.Sprite; private lightComp: Laya.DirectionLight2D; private dayTime: number = 0; private dayDuration: number = 24; // 一个完整周期的秒数 private displayText: Laya.Text; // 文本显示当...

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

223. Maximum call stack size exceeded [ 54%]

... class GameConfig {         static init() {             //注册Script或者Runtime引用             let reg = Laya.ClassUtils.regClass;     reg("script/GameMain.js",GameMain);         }     }     GameConfig.width = 640;     GameConfig.height = 1136;     GameConfig.sca...

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

224. 2D线渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 54%]

...的图形也是在宽高范围内。 */ export class DrawLine extends Laya.Script { declare owner: Laya.Sprite; line2DRender: Laya.Line2DRender; lastMousePos: number[] = []; isDrawing: boolean = false; // 标记是否正在绘制 // 组件被激活后执行,此时所有节点和组件均已创建...

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

225. 3D变换 · LayaAir3.3 · 引擎文档 · LAYABOX [ 54%]

...如下: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Sprite3D }) public cube: Laya.Sprite3D; // 平移距离 private translate: Laya.Vector3 = new Laya.Vector3(1, 1, 1); constructor() { super(); } /** * 组件被激活后执...

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

226. Laya native 有时候会卡在logo这个页面 [ 54%]

...tion () { if (window["onLayaInitError"]) { window["onLayaInitError"]("Load script error"); } };自己重载  onLayaInitError函数进行提示吧 2018-06-13 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 你是用layaplayer调试的,还是 打包后的app ?   2018-06-13 0 1 分享 微...

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

227. Laya.Scene.open打开的对话框中如何在关闭的时候调用父Scene中的方法 [ 54%]

...从舞台开始找的这个父Scene节点,再使用getComponent(Laya.Script)获取挂的脚本对象,对象.你的方法即可调用。 2019-08-29 1 0 分享 微博 QZONE 微信 rabbit 赞同来自: 父节点是Scene.open打开的,可以直接拿到parent父节点。 2019-08-29 0 1 分享 ...

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

228. 最小化一定时间后心跳变成一分钟一次了 [ 54%]

...符串变成数字? websocket的心跳问题 脚本组件继承于 Laya.Script。 其中的_update方法,多长时间会调用一次? 可以设置调用时间吗? MOUSE_OVER注册的响应函数,如果鼠标一直在动,多久会执行一次,一帧吗?和frameLoop一样? 新人求...

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

229. 调用拍照用input file可以么 [ 53%]

...报错this.zombieAnimator.on is not a function 脚本组件继承于 Laya.Script。 其中的_update方法,多长时间会调用一次? 可以设置调用时间吗? 如何在PC端浏览器的调试面板调用滚动条? 请问怎么通过OC直接调用一个JS函数 问题状态 最新活动...

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

230. IDE2.4+ vscode调试教程 [ 53%]

...9.1 && npm install rollup && npm install rollup-plugin-typescript2 && npm install rollup-plugin-glsl   然后剩下和layaIDE没差 直接F5调试就好了(记得修改launch.json中runtimeExecutable目录 附件 : --> vscode.zip 2019-11-20 添加评论 免费帖 --> 分享...

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