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

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

201. laya.ui.RadioGroup [ 78%]

...状态下的描边颜色。 UIGroup tag : * 对象的标签。 Component texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.time...

来源: laya_api 发布时间: 20170929

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

...请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: texture类里有 create 方法    /**          * 根据指定资源和坐标、宽高、偏移量等创建 <code>Texture</code> 对象。          * @param   source 绘图资源 img 或者 Text...

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

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

...在游戏中会碰到许多,如果能够预处理一下通过生产新的texture来优化性能,那就完美了。我在百度上搜索了下这有个文章http://www.hewebgl.com/article/getarticle/108可以实现动态生成texture,希望laya官方也可以提供类似的新方法,例如sav...

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

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

...leY scene scrollRect skewX skewY skinName source stage staticCache templet texture timer total transform url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains customRender d...

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

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

...onsole.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%]

...ader.load("res/apes/monkey2.png",Laya.Handler.create(this,function() { var texture=Laya.loader.getRes("res/apes/monkey2.png"); var sp=new Laya.Sprite(); sp.graphics.drawTexture(texture,0,0); sp.size(texture.width,texture.height); Laya.stage.addChild(sp); })); ``` 使用Graphics.drawTexture并不会...

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

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

bug,在laya编辑器里面用texture拼的界面,设置scaleX=-1,打包app在手机上失效。 2018-03-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 你用加速器试过没有...

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

208. laya.ui.VScrollBar [ 78%]

...的标签。 Component target : Sprite 设置滚动对象。 ScrollBar texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite thumbPercent : Number获取或设置一个值,该...

来源: laya_api 发布时间: 20170929

209. laya.ui.HScrollBar [ 78%]

...的标签。 Component target : Sprite 设置滚动对象。 ScrollBar texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite thumbPercent : Number获取或设置一个值,该...

来源: laya_api 发布时间: 20170929

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

...nction(){ /** * 地板类 */ function Floor(){ //背景贴图纹理 this.bgTexture = null; //背景 this.bg = null; Floor.__super.call(this); } //Floor 是一个显示对象 继承此 Sprite Laya.class(Floor, "Floor", laya.display.Sprite); var _proto = Floor.prototype; _proto.init = function(){ //...

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