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

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

201. laya.ui.RadioGroup [ 78%]

....uiClasspublic class RadioGroupInheritanceRadioGroup UIGroup Box Component Sprite Node EventDispatcher Object RadioGroup 控件定义一组 Radio 控件,这些控件相互排斥; 因此,用户每次只能选择一个 Radio 控件。 Public Properties Hide Inherited Public Properties Show Inher...

来源: laya_api 发布时间: 20170929

202. 怎么裁剪一张图片 [ 78%]

怎么裁剪一张图片 let tmp = new Laya.Sprite(); tmp.loadImage("test.png", 0, 0, 30, 52); 我这么写,裁不出30*52的区域。请问要怎么写 2018-09-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复...

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

203. drawcall性能优化,sprite绘制保存为新纹理 [ 78%]

drawcall性能优化,sprite绘制保存为新纹理 我现在场景里面有 30多个sprite,这个sprite由2个图片合成,中间应用了缩放,透明度,遮罩,最后面应用到场景时调用了80多个drawcall,这样对性能的影响就比较明显了。我在论坛上搜索过...

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

204. laya.ani.bone.Skeleton_API3.0 [ 78%]

...动画由Templet,AnimationPlayer,Skeleton三部分组成。 Hierarchy Sprite Skeleton Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha...

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

205. 不带格式后缀的图片无法成功加载 [ 78%]

....getRes(url); console.log(picTemp.width) // undefined let nodee = new Laya.Sprite() nodee.texture = picTemp nodee.width = 500 nodee.height = 250 nodee.x = 100 nodee.y = 350 Laya.stage.addChild(nodee) }));上面这个图片无法正常显示,打印 texture 的宽是 undefined,如果是带后缀...

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

206. CPU优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 78%]

...。 1. 使用getBounds/ getGraphicBounds。 ```typescript 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_文档 发布时间: 20210714

207. bug,在laya编辑器里面用texture拼的界面,设置scaleX=-1,打包app在手机上失效。 [ 78%]

...,为什么打包APK之后在手机上就连接不上socket 如何设置Sprite的宽高和点击区域? FairyGUI是一款专业的 UI编辑器(千万别点) ui list 里面的元素不能点击两次 【BUG备忘录】关于Tween动画无法正常作用问题-解决办法 怎么获得laya.inpu...

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

208. laya.ui.VScrollBar [ 78%]

...ya.uiClasspublic class VScrollBarInheritanceVScrollBar ScrollBar Component Sprite Node EventDispatcher Object 使用 VScrollBar (垂直 ScrollBar )控件,可以在因数据太多而不能在显示区域完全显示时控制显示的数据部分。 Public Properties Hide Inherited Public Proper...

来源: laya_api 发布时间: 20170929

209. laya.ui.HScrollBar [ 78%]

...ya.uiClasspublic class HScrollBarInheritanceHScrollBar ScrollBar Component Sprite Node EventDispatcher Object 使用 HScrollBar (水平 ScrollBar )控件,可以在因数据太多而不能在显示区域完全显示时控制显示的数据部分。 Public Properties Hide Inherited Public Proper...

来源: laya_api 发布时间: 20170929

210. 【简单跑酷--JS版】---Lv.3 添加地板 [ 77%]

...oor(){ Floor.__super.call(this); } //Floor 是一个显示对象 继承此 Sprite Laya.class(Floor, "Floor", laya.display.Sprite); var _proto = Floor.prototype; _proto.init = function(type){ //创建一个帧循环处理函数 Laya.timer.frameLoop(1, this, this.onLoop); } //在地板上面添加物...

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