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

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

241. Starling项目需要注意哪些问题? [ 80%]

...scale, false); map.perlinNoise(20*scale, 20*scale, 3, 5, false, true); var texture:Texture = Texture.fromBitmapData(map, false, false, scale); 用到了BitmapData的perlinNoise接口,这个接口Laya暂不支持,我就就必须用静态的纹理来替换这个动态生成的纹理。类似于如...

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

242. 关于微信小游戏的开放数据域,请问如何将开放数据域的canvas绘制到layaair的image上? [ 80%]

...据域canvas // this.view.image_rank_list //要绘制的图片 // var rankTexture = new Laya.Texture(wxMgr.getOpenDataCanvas()); // rankTexture.bitmap.alwaysChange = true;//小游戏使用,非常费,每帧刷新 // console.log(rankTexture); // var img = wxMgr.getOpenDataCanvas().toDataURL("image...

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

243. CPU优化方式(JavaScript-2D进阶篇(JS)-性能优化) [ 80%]

...ya.loader.load("res/apes/monkey2.png",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_文档 发布时间: 20210715

244. LayaAir IDE 多开ani,拖动其中一个ani图集的x,y属性,其他的ani的位置均受影响 [ 80%]

...们看下!你更改的位置是.ani的,还是.ani内部时间轴上的texture呢? Victor • 2017-05-12 15:09 @cuixueying 1.打开两个.ani文件(.ani文件仅有一个texture图层,为序列帧动画,A.ani , B.ani) 2.选中A.ani的texture层的第一帧,右边显示该texture的属...

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

245. laya.ui.AutoBitmap [ 80%]

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

来源: laya_api 发布时间: 20170929

246. 微信web页面贴图无法加载 [ 80%]

...ap: Can not generate mips [.Offscreen-For-WebGL-0x61872800]RENDER WARNING: texture bound to texture unit 0 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering. WebGL: too many errors, no more errors will be reported to the console for this context. 但是在同一台...

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

247. 加载图片的时间 [ 80%]

...个你加载资源的路径,如果图片加载了,这时会返回一个texture实例,实例里应该有我说的这些信息 2018-04-10 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 AllenYT 相关问题 请问LayaAir中如何使...

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

248. 特效播放问题 [ 80%]

...合集导致的)。 在资源预加载之后,使用之前加上: var texture:Texture = Laya.loader.getRes(e.url); texture.bitmap.enableMerageInAtlas = false; rgxianzhan • 2017-10-23 19:39 不能在加载的时候设置大图合集么,使用的地方真不少 Monica • 2017-10-23 20:01 @rg...

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

249. 模型导出失败 [ 80%]

模型导出失败 Unsupported texture format - Texture2D::EncodeTo functions do not support compressed texture formats.  unity5.6.3  运行环境, Laya2.0  unity插件  模型导出时报这个错 下面附件是我简单弄出来的一个packager,导出其中的cube时会报错,贴图...

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

250. 位图字体的制作与使用(JavaScript-LayaAir基础篇(JS)-文本) [ 80%]

...白色字透明底。 Font descriptor:字体描述文件,选择 xml。 Textures:纹理图片格式,选择 png。 ![6](img/6.png) 7.导出位图字体。选择菜单栏的 Options->Save bitmap font as…,导出生成的是一个字体描述文件(.fnt格式)和一个字体纹理图文...

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