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

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

321. [LayaAir3]V3.2 | 调试结果不一致,导致无法判断结果? [ 71%]

[LayaAir3]V3.2 | 调试结果不一致,导致无法判断结果? const { regClass, property } = Laya;  @regClass() export class Main extends Laya.Script {   testData = new Laya.Vector3(1, 1, 1);   @property(Laya.Camera)   camera: Laya.Camera;    onStart() {     //@ts-ignore     window...

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

322. HIERARCHY_LOADED 和 LOADED有什么区别?为什么对scene不起作用 [ 71%]

...ADED 和 LOADED有什么区别?为什么对scene不起作用 var scene = Laya.stage.addChild(new Laya.Scene()); scene.once(Laya.Event.HIERARCHY_LOADED, null, function (sprite) { console.log("scene HIERARCHY_LOADED"); }); scene.once(Laya.Event.LOADED, null, function (sprite) { console.log("scene LO...

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

323. QQ里扫一扫打开网页,不响应Laya.Event.FOCUS事件,导致失去焦点后,声音异常 [ 71%]

QQ里扫一扫打开网页,不响应Laya.Event.FOCUS事件,导致失去焦点后,声音异常 Laya.SoundManager.autoReleaseSound = true Laya.SoundManager.autoStopMusic = true Laya.SoundManager.playSound("sound/bg1.mp3", 0); Laya.stage.on(Laya.Event.FOCUS, null, function(){ console.log("获取...

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

324. 骨骼Label事件,多接收一次 [ 71%]

...与内容相关的链接 提交 1 个回复 qian 赞同来自: https://ask.layabox.com/question/3822 看一下这个分享 2018-03-15 0 10 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 tyl925450909 相关问题 分享:自定义事件派...

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

325. 加载模型后如何取得在Unity的Transform.Rotation属性 [ 71%]

...得我载入模型在Unity里面的Transform.Rotation参数。我试着在laya里面我查看_transform._localRotationEuler是Vector3(0,0,0),是不是只有提供Quaternion的表示而已呢? 2017-12-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

326. http 请求 once 的 回调参数,如何传递和接收? [ 70%]

...找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: q471989525 hr.once(Event.COMPLETE, this, http.success,[1,2,3]); uccess:function (1,2,3,e) {} 这样是争取的参数接收写法! 2018-03-04 1 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回...

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

327. 小米手机三指点击后,后续获得的触摸点失效 [ 70%]

...获得的触摸点失效,单点的情况下会获得三个触摸点信息Laya.stage.on(Laya.Event.MOUSE_DOWN, this, (data: Laya.Event) => { let str = ""; if (data.touches) { for (let i = 0; i < data.touches.length; i++) { str += ` {${i} : ${data.touches[i].pos.toString()}}`; } } console.log(...

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

328. layanative运行卡死 [ 70%]

layanative运行卡死 在部分手机上面,运行出现整个游戏卡死的情况,卡死的时候都会报错 12-07 16:44:25.408 W/Adreno-EGL( 4853): <qeglDrvAPI_eglSwapBuffers:3708>: EGL_CONTEXT_LOST 12-07 16:44:25.408 W/Adreno-EGL( 4853): <eglTimestampCreate:5650>: EGL_BAD_ALLO...

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

329. 请问如何监听html的button元件ontouchstart,ontouchend等事件 [ 70%]

...以如下为button加上onclick的监听事件。this.btn_CloseWebiFrame = laya.utils.Browser.window.document.createElement('button'); this.btn_CloseWebiFrame.onclick = () => { console.log("onclick"); };  oncontextmenu也没有问题。this.img_closeWebiFrame.oncontextmenu = () => { console.l...

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

330. 关于3d的碰撞检测 [ 70%]

LayaAir引擎 关于3d的碰撞检测   这边的确看到射线应该碰撞到地形了,但是检测的结果一直是-1 相关代码:const field: Laya.MeshSprite3D = this.scene.getChildByName("stadium").getChildByName("field") as Laya.MeshSprite3D;//拿到地板 const sprite3d1MeshCollider: L...

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