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

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

231. [LayaAirIDE 2.0]TextInput真机输入时显示蓝色字,求解 [ 53%]

... break; } } private _checkInput(input: Laya.TextInput) { let sp_icon: Laya.Sprite = new Laya.Sprite(); // 判定是否有两个子对象 if (input.numChildren == 2) { input.removeChildAt(1); } // 输入框为空则插入错误图标 if (input.text.trim().length == 0) { input.changeText(""); sp_icon....

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

232. 2.0按钮添加事件报错 cannot read property 'on' fof undefined [ 53%]

...onObject' of undefined Animation如何加点击事件 关于遍历产生的sprite的点击事件,急,大神帮看哈 3d项目-unity添加物理组件 layanative2 打包android平台 报错 btCollisionObject undefined event自定义事件的问题 IDE通过.ui自动生成的ui代码报错 怎么...

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

233. laya.ui.Button [ 53%]

... Events Packagelaya.uiClasspublic class ButtonInheritanceButton Component Sprite Node EventDispatcher ObjectImplements ISelectSubclasses CheckBox, Radio Button 组件用来表示常用的多态按钮。 Button 组件可显示文本标签、图标或同时显示两者。 可以是单态,两态和...

来源: laya_api 发布时间: 20170929

234. 如何实现3d遮罩效果? [ 53%]

...框范围内显示,红框范围外不显示应该如何实现? 或者Sprite3D是否有方法能够将当前渲染导出到Sprite显示的方法呢? 附件 : --> 2017-02-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 ...

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

235. laya.ui.Button [ 52%]

...vents Packagelaya.uiClasspublic class ButtonInheritanceButton UIComponent Sprite Node EventDispatcher ObjectImplements ISelectSubclasses CheckBox, Radio Button 组件用来表示常用的多态按钮。 Button 组件可显示文本标签、图标或同时显示两者。 可以是单态,两态和...

来源: Laya2.0_api 发布时间: 20190513

236. list组件在微信小游戏的上屏中点击定位不准 [ 52%]

...ment的使用 微信小游戏如何使用ttf字体? 关于遍历产生的sprite的点击事件,急,大神帮看哈 救命!canvas定位后 点击区域偏移,求大大们解答 问题状态 最新活动: 2019-12-06 14:41 浏览: 1259 关注: 5 人 Sornets • 2018-04-24 15:16 谢谢,我...

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

237. 请大家帮助优化一下这个抛物线的代码 [ 52%]

... https://my.oschina.net/u/659068/blog/1564002  class Ball extends Laya.Sprite{ private static cached:boolean = false; private body:Laya.Sprite; constructor(){ super(); this.init(); } public init():void{ if(!Ball.cached){ Ball.cached = true; this.body = new Laya.Sprite(); this.body.loadImage("war/b...

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

238. 使用官方文档中qrcode生成二维码的代码,打包APP后无效 [ 51%]

...aya.stage.once("click", this, this.clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); } private clickHandler(): void { var url: string = this.qrcode._oDrawing._elImage.src;//获取,注意这里是异步的,开发者可以加个延时在获取。 this.qrcodeSp.l...

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

239. CPU优化方式(JavaScript-2D进阶篇(JS)-性能优化) [ 51%]

...。 1. 使用getBounds/ getGraphicBounds。 ```javascript var sp=new Laya.Sprite(); sp.graphics.drawRect(0,0,100,100,"#FF0000"); var bounds:Laya.Rectangle=sp.getGraphicBounds(); Laya.stage.addChild(sp); ``` getBounds可以满足多数多数需求,但由于其需要计算边界,不适合频繁调...

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

240. drawTexture 画出来的数据会有以前的数据 [ 50%]

drawTexture 画出来的数据会有以前的数据 private var iconSpr:Sprite; private var htmlCanvas:HTMLCanvas; private var texture:Texture; private var xNum:int = 0; private var yNum:int = 0; private var img:Image; public function TestView() { img = new Image("comp/lhjicon_5.png"); img.x = 640;...

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