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

大约有 1,691 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0066 秒)

161. laya.ui.AutoBitmap [ 86%]

...0,1为垂直3宫格,3宫格性能比9宫格高。 AutoBitmap  source : Texture 对象的纹理资源。 AutoBitmap  width : Number 表示显示对象的宽度,以像素为单位。 AutoBitmapPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By alpha(a...

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

162. 微信小游戏渲染开放域卡顿处理 [ 86%]

...么处理的 pfUtils.getShareCanvas = function() {     return new Laya.Texture(sharedCanvas/*window.sharedCanvas*/); }; // 通知开放域数据:我这里采用的是“字符串标志+另外数据”来说明该指令是什么操作以及操作的参数,下面用到两个标识:enter进入...

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

163. js环境下使用Loader加载图片在Sprite对象的.on函数无效 [ 86%]

...对象的.on函数无效 var tempnote = new Laya.Sprite(); 使用 tempnote.texture=Loader.getRes(tempjson.pic)后 tempnote.on函数不触发 使用tempnote.loadImage(tempjson.pic); 触发正常,如果我想使用Loader.getRes 来载入缓存的图片应如何处理. 2017-10-24 添加评论 免费...

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

164. 用viewport之后,为什么就不能使用Laya.Texture(用drawTexture画图片),然后用viewport显示区域 [ 86%]

用viewport之后,为什么就不能使用Laya.Texture(用drawTexture画图片),然后用viewport显示区域 2017-12-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 wudi199553 赞同来自: 你是显示不...

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

165. drawToCanvas无法截取到有子元素。 [ 86%]

...nvas = htmlCanvas.getCanvas(); trace(canvas.toDataURL('image/png')); const texture = new Laya.Texture(htmlCanvas); const sp = new Sprite(); sp.graphics.drawTexture(texture); this.shot.addChild(sp);对,是可以的。当时drawToCanvas的第一个参数设置小了,没看到后面的元素。 这...

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

166. 1.7.18beta少方法? [ 86%]

...WebGL.mainContext; var preTarget:* = WebGLContext.curBindTexTarget; var preTexture:* = WebGLContext.curBindTexValue; WebGLContext.bindTexture(gl, WebGLContext.TEXTURE_2D, _source); //由于HTML5中Image不能直接获取像素素数,只能先画到Canvas上再取出像素数据,再分别texSubImag...

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

167. IDE打开某个场景时弹处弹框报错:对[Dialog]的texture属性赋值时遇错误:cannot read property 'width' of null [ 86%]

IDE打开某个场景时弹处弹框报错:对[Dialog]的texture属性赋值时遇错误:cannot read property 'width' of null 对[Dialog]的texture属性赋值时遇错误:cannot read property 'width' of null 附件 : --> 2020-02-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

168. Laya2.0 的3d截图 [ 86%]

...     let h: number = gl.drawingBufferHeight;         let texture2d: Laya.Texture2D = new Laya.Texture2D(w,h,Laya.TextureFormat.R8G8B8A8,false,false);         texture2d.setPixels(pixels);         let tex: Laya.Texture = new Laya.Texture(texture2d);     ...

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

169. 我是AS程序员,关于人物动画和物理引擎有几个问题 [ 86%]

...是物理引擎的问题。 首先是切片动画: 1.我想像starling和texture配合使用那样,通过texture生成纹理集,在starling中加载纹理和配套的xml进行控制。比如一张纹理包含了角色的走、跑、跳和攻击,我在代码上写使用的fps和对应动作...

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

170. 图片显示好奇怪 [ 86%]

...',Handler.create(this,onLoaded)); } private function onLoaded():void { var texture:Texture=Loader.getRes('logo.png'); var sp:Sprite=new Sprite(); sp.graphics.clear();//把上次的绘制清除 sp.graphics.drawTexture(texture); Laya.stage.addChild(sp); } 2017-05-05 0 0 分享 微博 QZONE 微信 为...

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