大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0105 秒)
Laya_社区(3330) Laya2.0_文档(296) Laya_示例(141) Laya3.0_文档(118) Laya2.0_示例(117) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
请问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
...如下: 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
...-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
...这样的。 我在脚本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
...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
...: 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
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
...: 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
...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
...的type为mouseup,由于scrollBar移除了mouseUp事件,所以此时的this._events[type]是undefined,而源码中又去取undefined的run属性,肯定会报错,可以改成如下几句 let newListener=this._events[type]; if (listeners.length === 0 && this._events && newListene...
来源: Laya_社区 发布时间: 20211227