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

大约有 395 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0040 秒)

151. 鼠标脚本(JavaScript-3D基础(JS)-LayaAir3D之鼠标交互) [ 62%]

...猴都添加了脚本。 > **脚本类**: ```typescript export default class MouseScript extends Laya.Script3D{ constructor(){super();} //物体必须拥有碰撞组件(Collider) //当被鼠标点击 onMouseDown(e){ //console.log("点击到了我box",owner.name); //从父容器销毁我自己 ...

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

152. 微信排行榜 点击事件 无法监测到 [ 62%]

...交 3 个回复 Laya_Aaron 赞同来自: 叔年心~厌世 搜ui.js 里面class WXOpenDataViewer 有个 get height{}  改成  return super.height   2019-09-23 1 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 需要传个demo看一下,不然不好确认原因   2019-09-23 0 2 分享 ...

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

153. 子容器的事件问题 [ 62%]

...nsole.log("为什么这里不进来"); }); } /**  * ViewHeadViewTest  */ class ViewHeadViewTest extends Laya.Sprite {     constructor() {         super();         this.graphics.drawRect(0, 0, 1500, 1500, "#0000ff");         this.on(Laya.Event.CLICK, this, this.onclickTest);     } ...

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

154. Runtime照着视频做运行不了,求解 [ 62%]

Runtime照着视频做运行不了,求解 export default class TextInputExt extends Laya.TextInput{ constructor() { super(); } } 脚拖到runtime那里,结果运行提示找不到脚本 附件 : --> 2019-01-21 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

155. 创建[HTMLDivElement]时遇到错误(手动实例一次本组件可定位错误) [ 62%]

...IDE\resources\app\out\vs\layaEditor\renders\editorui2.0这个文件,把__class(HtmlText,'laya.editorUI.HtmlText');这句话改成__class(HtmlText,'laya.editorUI.HtmlText',_super);就没问题了

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

156. laya 的list组件,如果有多页信息,怎么实现翻页丫?? [ 62%]

..."../data/ConfigInfo"; import { ui } from "../ui/layaMaxUI"; export default class RuleDialog extends ui.scene.RuleDialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(thi...

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

157. 场景管理 · LayaAir3.0文档 · LAYABOX [ 62%]

...过unDestroyedScenes属性查看还未被销毁的场景列表 */ export class Scene extends Sprite { /**创建后,还未被销毁的场景列表,方便查看还未被销毁的场景列表,方便内存管理,本属性只读,请不要直接修改*/ static readonly unDestroyedScenes: Set<...

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

158. 鼠标穿透问题 [ 62%]

...t laya.ui.List; import laya.utils.Handler; import laya.webgl.WebGL; public class Bootstrapper extends Sprite { protected var _list:List; protected var _items:Array; protected var _loadingBg:Sprite; public function Bootstrapper() { Laya.init(696, 1118, WebGL); Laya.stage.bgColor = "#232628"; Laya.sta...

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

159. 发现bug,update大问题!!!!!!!!! 2.13版本 [ 62%]

... from "../Const"; import UIMain from "../ui/Game/UIMain";  export default class GameWnd extends BaseWin {     public view: UIMain;     /** 角色 */     private character: Laya.Sprite     /** 角色刚体*/     private rig: Laya.RigidBody     /** 医疗包*/     private addhp: Laya.Sp...

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

160. 天空穹不显示 [ 62%]

天空穹不显示 export default class GameUI extends Laya.Scene { constructor() { super(); //加载场景文件 this.loadScene("test/TestScene.scene"); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //添加照相机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100)...

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