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

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

221. 求TS项目里的index里的js加载顺序自动生成规则 [ 55%]

...注: 4 人 cuixueying • 2017-02-22 17:01 是的,我们自动生成的script标签是按照顺序放置好的! sleepfish • 2017-07-26 19:53 @cuixueying:按照什么顺序 15068753667 • 2017-08-05 21:53 @sleepfish:终极方案是vscode+AMD

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

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

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

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

223. 2D方向光 · LayaAir3.4 · 引擎文档 · 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

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

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

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

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

226. 3D变换 · LayaAir3.4 · 引擎文档 · 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

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

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

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

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

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

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

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

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