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

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

201. 文本-字数限制 [ 80%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createInput(); } createInput() { const Input = Laya.Input; let inputText = new Input(); Laya.stage.addChild(inputText); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya....

来源: Laya2.0_示例 发布时间: 20251130

202. Handler.create的回收问题 [ 80%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.h1 = Laya.Handler.create(this, this.loadPicComplete, null, true); Laya.loader.load("res/img/1.png", this.h1); } private loadPicComplete(): void { Laya.timer.once(2000, this, this.actT); } private actT(): void { this.h2 =...

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

203. 文本-单行输入 [ 80%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createInput(); } createInput() { const Input = Laya.Input; var inputText = new Input(); Laya.stage.addChild(inputText); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya....

来源: Laya2.0_示例 发布时间: 20251130

204. TypeError: this._childs is null [ 80%]

TypeError: this._childs is null 用了Laya.stage.destroyChildren();之后出错 TypeError: this._childs is null 看不懂啊! 救命啊!!!!!!   还有火狐提示 HTTP "Content-Type" 中的 "text/html" 不支持。媒体资源加载失败。 无法播放媒体。没有相应格式的...

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

205. laya.ui.ColorPicker_API3.0 [ 80%]

...背景颜色。 Laya.loader.load("resource/ui/color.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成!"); var colorPicket:ColorPicker = new ColorPicker();//创建一个 ColorPicker 类的实例对象 colorPicket 。 co...

来源: Laya3.0_api 发布时间: 20231115

206. List中放TextInput,当list滚动的时候,复用会有问题,input中的内容会乱,尤其有输入框focus的情况下 [ 79%]

...ui.TextInput; var WID = 373, HEI = 30; function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.img.graphics.drawRect(0, 0, WID, HEI - 2, "#eeeeee"); this.label = new Label(); this.addChild(this.label); this.input = new TextInput(); this.a...

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

207. this.scene.physicsSimulation.rayCastAll 报错 [ 79%]

this.scene.physicsSimulation.rayCastAll 报错 this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.instance.mouseY; //产生射线 this.camera.viewportPointToRay(this.point,this.ray);   /// Laya.PhysicsSimulation.rayCast(this.ray, this.outHitResult, 30, 0) //拿到...

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

208. Laya下怎么实现复制 [ 79%]

... console.log(e); }); </script>         代码中使用   var pt=this.lbtn.localToGlobal(new Laya.Point(this.lbtn.x,this.lbtn.y)); pt.x -=this.lbtn.width /2; pt.y -=120; var gd=GameData.userData; this.yqm.text=gd.invCode; this.dt.text="邀请次数 "+gd.invFriends+"/99" var iframe = Browse...

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

209. laya.display.Text对象的event事件监听无效? [ 79%]

...event.change事件   事件绑定必须写成 txt.on(Laya.Event.CHANGE, this, function () { alert('文本进行了修改!'); }); 之前少了Laya   2017-08-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cui...

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

210. 关于text赋值问题 [ 79%]

...容相关的链接 提交 1 个回复 Michael 赞同来自: 输出一下 this.txt_load , 是不是没有初始化 2018-11-23 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 158*****050 相关问题 发起问题须知,必看!!!不...

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