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

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

211. 自定义官方组件报错,有无官方例子下载? [ 55%]

...数 在这个函数里面处理 试下呢 public createView(view):void { super.createView(view); //在这处理 } 2018-11-27 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 177*****571 相关问题 发起问题须知,必看!!!不...

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

212. 获取位置信息 · LayaAir3.3 · 引擎文档 · LAYABOX [ 55%]

...; @regClass() export class NewScript extends Laya.Script { constructor() { super(); } onMouseClick(evt: Laya.Event): void { // 尝试获取当前位置 Laya.Geolocation.getCurrentPosition( Laya.Handler.create(this, this.onSuccess), Laya.Handler.create(this, this.onError) ); console.log("click"); } /...

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

213. ComboBox显示问题 [ 55%]

...,hihihi2,hihihi2"}}]}; override protected function createChildren():void { super.createChildren(); createView(uiView); } } } 为什么我这个ComboBox的label文字没有显示的? 2018-03-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

214. 如何给Tab里的button设置点击事件? [ 55%]

...: 2328 关注: 2 人 Y_Yao • 2017-05-16 10:26 function daoju() { daoju.super(this); this.Tab_ZM.selectHandler = new Laya.Handler(this, onSelect); } function onSelect(index) { console.log("当前选择的标签页索引为:" + index);); this.Tab_ZM.on(Event.CLICK,this,onDaoju(index)); }...

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

215. 微信飞机大战教程JS版内容重复 [ 55%]

... 微信 YuanAndJing 赞同来自: 飞机大战  JS视频中 第三节Role.super(this);  执行出错  请问是什么问题?   2017-08-10 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 hodd1988 相关问题 关于微信小游戏关...

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

216. 生成的粒子特效怎么设置colorComponentInter无效? [ 55%]

...rComponentInter无效? function UILetterBox(letter, width) { UILetterBox.super(this); letter = letter; this.loadImage('res/jiezou/wenzi2.png'); Laya.loader.load("res/parts/qipao.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON); } function onAssetsLoaded(settings) { settings.colorCom...

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

217. 鼠标脚本(TypeScript-3D基础(TS)-LayaAir3D之鼠标交互) [ 55%]

...ipt extends Laya.Script3D{ private meshsp:Laya.MeshSprite3D; constructor(){super();} /** * 覆写3D对象组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(){ this.meshsp = this.owner as Laya.MeshSprite3D(); } //物体必须拥有碰撞组...

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

218. 为什么hitTestPoint始终是false? [ 55%]

...s Laya.Sprite { private s:Laya.Sprite = new Laya.Sprite(); constructor() { super(); var img:Laya.Image = new Laya.Image("comp/bg.png"); this.s.addChild(img); this.addChild(this.s); Laya.stage.on(Laya.Event.CLICK, this, this.hitPoint); } private hitPoint(e:Laya.Event): void { console.log(this.s.hitTe...

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

219. clearRes好像没作用,或许我的用法不对 [ 55%]

...才代码路径有误,更正如下     constructor() {         super();         Laya.stage.on(Laya.Event.KEY_UP, this, this.onKeyUp);     }     onKeyUp(e: Laya.Event) {         if (e.keyCode == 65) {//A             console.log("释放资源false")         ...

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

220. 关于实例化 动画特效.efc 文件的问题 [ 55%]

...时候报错: 具体是layaUI.max.all.js里的这一行:effect01UI.__super.call(this); TypeError: Cannot read property 'call' of undefined   请问我应该怎么实例化 effectAnimation.efc 这种模板?   2018-01-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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