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

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

1291. 请问HTMLDivElement怎么加垂直滚动条 [ 84%]

请问HTMLDivElement怎么加垂直滚动条 this.chat_lab = new Laya.HTMLDivElement(); this.chat_lab.pos(2, 2); this.chat_lab.size(495,329); this.rect_sprite.addChild(this.chat_lab); .... //输入了一大堆聊天记录后,内容超过了329px,虽然限高height:329px;并加入了overflow-y:s...

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

1292. 求助!wss在native中无法连接 [ 84%]

...如下: wss://testconnector.46mp.com:8014  I/LayaBox: new JSWebSocket::this=abc23ac0 deletgate=abb1ba70  I/LayaBox: WebSocket::init m_host: testconnector.46mp.com, m_port: 8014, m_path: /  I/LayaBox: @@@@@ connect testconnector.46mp.com:8014 r W/LayaBox: JSWebSocketDelegate::onError( code=1 )th...

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

1293. label位置设置 [ 84%]

...-07-09 20:55 浏览: 868 关注: 2 人 redlilyforgert • 2017-07-12 15:13 this.txt_hint.x=this.logicmap.hint_show[i].hintcontentx;//x值不变化 this.txt_hint.y=this.logicmap.hint_show[i].hintcontenty;//y值能变化 Monica • 2017-07-12 20:33 @redlilyforgert:麻烦上传一个例子吧!谢谢

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

1294. 判断场景里是否存在模型? [ 84%]

...这样的。 我在脚本createmesh文件里,异步加载了2个模型 this.tmpmesh=[ Laya.Sprite3D.load(url+"/chaoshi/LayaScene_xue/xue.lh"), Laya.Sprite3D.load(url+"/naicha/LayaScene_xue/xue2.lh"), ];这2个模型在加载到场景里,我是用了随机数,比如第一次可能是this.tmpmes...

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

1295. 绘制能力 · LayaAir3.4 · 引擎文档 · LAYABOX [ 84%]

...ny = null, lineWidth: number = 1, percent?: boolean): DrawRectCmd { return this.addCmd(DrawRectCmd.create(x, y, width, height, fillColor, lineColor, lineWidth, percent)); } 代码示例: let sp = new Laya.Sprite(); //画矩形 sp.graphics.drawRect(20, 20, 100, 50, "#ffff00", "#00ff00", 5, false); ...

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

1296. 代码2.0.2版本Laya.Animator发现play方法的存在BUG [ 84%]

...:   override protected function _onEnable():void { for (var i = 0, n = this._controllerLayers.length; i < n; i++) { if (this._controllerLayers[i].playOnWake) { var controllerLayer = this._controllerLayers[i]; var curPlayState = controllerLayer._currentPlayState; if (curPlayState == null) { var...

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

1297. Animation提示未定义 [ 84%]

Animation提示未定义 function FarmIndexView() { FarmIndexView.super(this); this.aniCloud = new Animation(); this.aniCloud.loadAnimation("AniCloud.ani"); Laya.stage.addChild(this.aniCloud); }报错 Uncaught ReferenceError: Animation is not defined 2017-10-26 添加评论 免费帖 --> 分享 微...

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

1298. 点击过快问题 [ 83%]

...: zjw917329684 参考下下面的写法吧: Laya.stage.once(Event.CLICK,this,onClick); } private function onClick():void { trace("aaa"); Laya.stage.off(Event.CLICK,this,onClick); Laya.timer.once(500,this,onLoop); } private function onLoop():void { Laya.stage.once(Event.CLICK,this,onClick); } 2017-...

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

1299. HttpRequest详解(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 83%]

...http.timeout = 10000;//设置超时时间; xhr.once(Laya.Event.COMPLETE, this, this.completeHandler); xhr.once(Laya.Event.ERROR, this, this.errorHandler); xhr.on(Laya.Event.PROGRESS, this, this.processHandler); xhr.send("res/data.data", "", "get", "text"); console.log("aaaa"); } private processHan...

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

1300. panel问题 [ 83%]

...的type为mouseup,由于scrollBar移除了mouseUp事件,所以此时的this._events[type]是undefined,而源码中又去取undefined的run属性,肯定会报错,可以改成如下几句 let newListener=this._events[type]; if (listeners.length === 0 && this._events && newListene...

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