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

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

61. 如何更换ani文件的图片帧 [ 73%]

...获取Animation对象的frames属性,通过修改_one[0],赋值新的Texture对象即可实现,如下图:   最近出LayaRuntime包,发现在这个Runtime下,Animatin每一帧的数据是在_cmds中,并且cmds中不是Texture对象,而是HtmlImageElement对象。 现在的问题就...

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

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

...对象的.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

63. 创建材质(ActionScript-3D基础(AS3)-LayaAir3D之Material材质) [ 72%]

...//创建材质 var material:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/layabox.png", Handler.create(this, function(tex:Texture2D):void { //纹理加载完成后赋值 material.albedoTexture = tex; })); //将材质赋值给自定义模型 box.meshRenderer.material = material; ...

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

64. 使用IDE制作的动画在pc模拟器播放OK在手机端不显示 [ 71%]

...er.create(this, this.onLoading, null, false)); }, onAssetloaded : function(texture){ this.tl = new Laya.Animation(); //加载动画文件 this.tl.loadAnimation("imgdebris/naruto2.ani"); //添加到舞台 var apesCtn = new Laya.Sprite(); Laya.stage.addChild(apesCtn); var _this = this; this.tl.on(this...

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

65. laya.display.Animation [ 71%]

...但是可以通过调用 reCache 方法手动刷新。 注意: 1.Sprite texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.time...

来源: laya_api 发布时间: 20170929

66. laya.ani.bone.Skeleton [ 71%]

...rite  templet : Templet[read-only] 得到动画模板的引用 Skeleton texture : Texture 设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。 等同于graphics.clear();graphics.drawImage(),但性能更高 还可以赋值一个图片地址,...

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

67. laya.resource.Texture2D_API3.0 [ 71%]

...rotected All Inherited Externals Only exported Menu Globals "laya/resource/Texture2D" Texture2D Class Texture2D Texture2D 类用于生成2D纹理。 Hierarchy BaseTexture Texture2D Index Constructors constructor Properties _id destroyedImmediately lock name url uuid DEBUG TEXTURE2D blackTexture erro...

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

68. 图片通过drawTexture平铺出现缝隙 [ 71%]

图片通过drawTexture平铺出现缝隙 this.darwSprite = new Sprite();         this.addChild(this.darwSprite);         var t: Texture = Laya.loader.getRes("load/0.png");         this.darwSprite.graphics.drawTexture(t,0,0);         this.darwSprite.graphics.drawTexture(t,176,0);  ...

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

69. 精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 71%]

...属性 (图2-5) 如图2-5所示,精灵的自身属性有: 纹理 Texture:绘制一个图片或者渲染纹理。 绘制图形 Graphics:绘制一个或者一组图形。 2.3.1 Image的Texture 首先,Sprite的Texture是支持通过拖入或者加载一张图片作为纹理Texture绘制...

来源: Laya3.0_文档 发布时间: 20251010

70. laya.ui.Image [ 71%]

...源加载完成后,会自动缓存至资源库中。 Image  source : Texture 对象的纹理资源。 Image stage : Stage[read-only] 对舞台 stage 的引用。Sprite staticCache : Boolean设置cacheAs为非空时此值才有效,staticCache=true时,子对象变化时不会自动更新缓...

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