大约有 1,735 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0120 秒)
Laya_社区(1392) Laya3.0_api(107) laya_api(68) Laya2.0_api(68) Laya2.0_文档(65) Laya3.0_文档(22) Laya_示例(8) Laya2.0_示例(5)
BoneSlot 对象 showSlotData 无效 texture 替换后显示错误! 骨骼动画里有没有办法直接替换显示数据和纹理? 代码这样赋值不显示 调用一次 _slot.currTexture = tex; 则显示错乱。 附件 : --> 2018-05-07 添加评论 悬赏 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20180507
粘贴的3D自定义shader示例代码,运行报找不到u_texture 粘贴的3D自定义shader示例代码,且添加了CustomMaterial.js,可以运行,但是运行报找不到u_texture, http://layaair.ldc.layabox.com/demo/?D3Advance_CustomShaderAndMaterial 自定义shader示例 附...
来源: Laya_社区 发布时间: 20170424
...on onClick():void { image.skin="bg.jpg"; } } }方法2:使用graphics.drawTexture的方式】 package { import laya.display.Sprite; import laya.events.Event; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Handler; public class LayaAirDemo { private var sp:Sprite; public fun...
来源: Laya_社区 发布时间: 20170628
截屏功能,添加Texture对象报错 按照官方教程编写的截屏功能,代码如下所示。 在sp内addChild失败,(未报错,图内可以看到打印出来sp子节点为空)。添加进Stage报错Failed to execute 'bindTexture' on 'WebGL2RenderingContext': parameter 2 is not o...
来源: Laya_社区 发布时间: 20200420
...rl,Laya.Handler.create(this,()=>{ let tur:Laya.Texture = Laya.loader.getRes(cg_url); if(tur)img_cg.graphics.drawImage(tur) }),null,Laya.Loader.IMAGE); 这段代码, 当 cg_url等于“”的时候,底层判断会走到这...
来源: Laya_社区 发布时间: 20201130
... Game_Parameter.game_height, 0, 0); //把精灵绘制到canvas上面let my_texture: Texture = new Texture(my_canvas); //使用htmlCanvas创建Texture let pixels = my_texture.getPixels(700, 8, 10, 1); //得到像素点 2018-01-07 2 0 分享 微博 QZONE 微信 cuixueying 赞同来自: layaAir下...
来源: Laya_社区 发布时间: 20170405
粘贴的3D自定义shader示例代码,运行报找不到u_texture 粘贴的3D自定义shader示例代码,且添加了CustomMaterial.js,可以运行,但是运行报找不到u_texture, http://layaair.ldc.layabox.com/demo/?D3Advance_CustomShaderAndMaterial 自定义shader示例 2017-...
来源: Laya_社区 发布时间: 20170424
..., var customMaterial6=new Laya.WaterMaterial(); customMaterial6.deepColorTexture=new Laya.Texture2D.load("water/WaterSimple.jpg"); customMaterial6.detailTexture=new Laya.Texture2D.load("water/Water2.jpg"); customMaterial6.diffuseTexture=new Laya.Texture2D.load("water/Water2.jpg"); customMaterial6....
来源: Laya_社区 发布时间: 20170527
...请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: texture类里有 create 方法 /** * 根据指定资源和坐标、宽高、偏移量等创建 <code>Texture</code> 对象。 * @param source 绘图资源 img 或者 Text...
来源: Laya_社区 发布时间: 20180906
帮忙看看Texture类getPixels内存泄漏的问题。 请帮忙看看这个demo,Texture类方法getPixels导致内存泄漏。 用的引擎版本是1.7.16beta。package { import laya.display.Sprite; import laya.events.Event; import laya.maths.Point; import laya.resource.HTMLCanvas; import laya....
来源: Laya_社区 发布时间: 20180302