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

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

1. Uncaught TypeError: Cannot read property '_tf' of null [ 100%]

...public function main():void {   _guideImage = new Image();   _guideImage.source = Loader.getRes("source/png/ui/1/guideImg.png");     tweenGuide1(_guideImage );     Tween.clearAll(_guideImage);   _guideImage.destroy(true);   _guideImage.dispose();   _guideImage = null; }   public function...

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

2. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 99%]

...aAir 新建项目面板 新建项目sunDemo file:///blog/asroads.github.io/source/_posts/game/LayaAir2-0-LayaBox-%E4%B9%8B%E5%B0%8F%E6%B8%B8%E6%88%8F%E5%BC%80%E6%94%BE%E5%9F%9F%E5%BC%80%E5%8F%91/image-20190307195813680.png?lastModify=1551962708 官方已经给我们搭建好了 基本的结构和框...

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

3. image的uv动画不能平铺 [ 96%]

...lImg){ if(this.testScrollImg._bitmap && this.testScrollImg._bitmap.source){ this.testScrollImg._bitmap.source.repeat = true; var ss:any = this.testScrollImg._bitmap.source.uv; var uv:any[] = []; uv[0] = ss[0] + 2/this.testScrollImg.width; uv[1] = ss[1]; uv[2] = ss[2] + 2/this.testScrollImg.w...

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

4. Laya中Button等组件lose skin的问题 [ 95%]

...         return;         };         var width=img.sourceWidth;         var height=img.sourceHeight / this._stateNum;         img.$_GID || (img.$_GID=Utils.getGID());         var key=img.$_GID+"-"+this._stateNum;         var clips=WeakObject.I....

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

5. 如何把加载好的二进制数据转成Texture? [ 93%]

...码给你 loadBytes(res.bin, () => { res.texture = Texture.create(res.source, 0, 0, res.texWidth, res.texHeight); // res.source.dispose();//提交显卡是异步过程 dispose 会导致texture无效 // setTimeout(() => { // res.source.dispose(); // }, 1000); // res.source = null;//texture 也...

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

6. typescipt在一定范围内加载图片按照等比排列 [ 92%]

...;   function onImgListRender(box: Laya.Box) {     let model = box.dataSource;     let panel = box.getChildByName('panel') as Laya.Panel;     let img = panel.getChildByName('img') as Laya.Image;      img.skin = model;     let reset = function () {         let source = im...

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

7. Texture2D.setPixels会导致图片质量变差了,获取原生的pixels没有进行改动。怎么回事呢? [ 92%]

..."res/textures/marry_frame_005.png"; url= Laya.URL.formatURL(url); var imageSource=new Laya.Browser.window.Image(); var thisObj = this; var onload=function (){ var tex=new Laya.Texture2D(imageSource.width,imageSource.height,1,false,true); tex.wrapModeU=1; tex.wrapModeV=1; tex.loadImageSource(imageSou...

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

8. Image偶尔显示不了 [ 92%]

...,height,alpha,skin都正常,资源所在图集也存在,不过小图的source的_referecentCount==0,_texture==null。不知是不是这个原因引起?      如附件图,black.png是用到的小图,所在图集为comui.atlas   附件 : --> 2022-07-22 添加评论 免费帖 --> 分享 ...

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

9. TextureCube. setSixSideImageSources () [ 86%]

TextureCube. setSixSideImageSources () setSixSideImageSources()method  public function setSixSideImageSources(source:Array, premultiplyAlpha:Boolean = false):void     通过六张图片源填充纹理。 source:Array 里面传入的是什么?图片的路径吗?我传入了6个贴图的路...

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

10. Animation怎么使用.atlas文件,直接拖到source上不行 [ 86%]

Animation怎么使用.atlas文件,直接拖到source上不行 提示接收多选图片和.json和.ani 2017-06-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 不太明白你的操作...

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