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

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

231. 音频节点 · LayaAir3.3 · 引擎文档 · LAYABOX [ 75%]

...放 AutoPlay 运行时,是否自动播放 1.3 脚本控制SoundNode 在Scene2D的属性设置面板中,增加一个自定义组件脚本。然后,将SoundNode拖入到其暴露的属性入口中。下面给出一个示例代码,实现脚本控制SoundNode: const { regClass, property } = La...

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

232. 使用Laya.Handler.create在方法体内this关键词无效 [ 75%]

...不是外部的this指向出了问题。 推荐用匿名函数外部 Laya.Scene3D.load("...", Laya.Handler.create(this,myscene=>{ //ToDo }))    2019-10-21 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 念 相关问题 两个对象n...

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

233. Warning!,this class[MiniAdpter] already exist: Object {} [ 75%]

...Adpter] already exist: Object {init: } 升级Laya2.2.0报Class constructor Scene cannot be invoked without 'new'解决办法 Uncaught TypeError: Class constructor Component cannot be invoked without 'new' ClassUtils.getClass获取不到Class Uncaught 无法实例class PhysicsCollider extends Physics...

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

234. Laya.stage.on(Laya.Event.RESIZE,this, this.ChangeSize); [ 75%]

...,您这边有什么建议吗? 初学者 • 2023-05-17 10:02 如果用Scene做,那么打开场景的时候,是不是就不能用open的方法,可是不用open方法的话能用addchild吗? 初学者 • 2023-05-17 10:26 如果想要监听屏幕旋转,需要怎么写呢 layabox小高 ...

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

235. [LayaAirIDE 2.0]TextInput真机输入时显示蓝色字,求解 [ 75%]

...is.lb_cancel.on(Laya.Event.CLICK, this, () => { // 返回登陆页 Laya.Scene.open("Auth.scene"); }); // 遍历数组添加事件 this._arrInput.forEach((element, index) => { element.on(Laya.Event.FOCUS, this, this._onInputEvent, [element, this._arrLabel[index], Laya.Event.FOCUS]); element.on(...

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

236. 物理系统之FixedConstraint(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 75%]

...体 ```typescript //创建盒型MeshSprite3D var box: MeshSprite3D = (this.scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1)))); //设置材质 var transform: Transform3D = box.transform; var pos: Vector3 = transform.position; pos.setValue(0, 5, 0); transform.position = pos; //创建...

来源: Laya2.0_文档 发布时间: 20210715

237. 物理系统之FixedConstraint(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 75%]

...体 ```typescript //创建盒型MeshSprite3D var box: MeshSprite3D = (this.scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1)))); //设置材质 var transform: Transform3D = box.transform; var pos: Vector3 = transform.position; pos.setValue(0, 5, 0); transform.position = pos; //创建...

来源: Laya2.0_文档 发布时间: 20210715

238. 求解:2D项目中加载View,Laya.Scene.load应该如何使用? [ 75%]

求解:2D项目中加载View,Laya.Scene.load应该如何使用?   如图,在主场景中嵌入一个View,直接运行可以显示,但是在挂载了runtime脚本之后,运行就不显示。 必须手动在View的runtime脚本中加一个this.loadScene("aaa.scene")才能正常显示...

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

239. 如何才能生成scene配套的代码 [ 75%]

如何才能生成scene配套的代码 在demo里有个类TestSceneUI 请问如何才能生成 /**This class is automatically generated by LayaAirIDE, please do not make any modifications. */ package ui.test { import laya.ui.*; import laya.display.*; public class TestSceneUI extends Scene { public ...

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

240. dialog的popup方法不会关闭其他弹窗 [ 75%]

...有没有方法能够获取“鼠标是否处于按下状态”? laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 [分享]Dialog 点击边缘不关闭的 Demo示例 Laya 安卓端 在服务端运行指令layadcc ./ 后进不去,提示 assetI...

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