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

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

31. native 获取Texture上的某个区域的像素点 getPixels中有报错 [ 80%]

native 获取Texture上的某个区域的像素点 getPixels中有报错 代码如下:           let tex: Laya.Texture = new Laya.Texture();         tex.load("res/img/108879.png",Laya.Handler.create(this,function(): void{             tex.getPixels(0,0,1,1);      ...

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

32. [LayaAirIDE3]shader修改不同步 [ 80%]

...题,通过直接修改gl_FragColor = vec4(0, 1, 0, 0);或者使用变量tex2DNode14的方式来修改gl_FragColor都没有复现,您那边是否是因为tex2DNode14此变量未存在导致报错导致的。 2025-02-17 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回...

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

33. laya.display.Graphics [ 78%]

...Color:* = null, lineWidth:Number = 1):void 绘制矩形。 Graphics  drawTexture(tex:Texture, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, m:Matrix = null, alpha:Number = 1):Array 绘制纹理。 Graphics  drawTextures(tex:Texture, pos:Array):void 批量绘制同样纹理。 ...

来源: laya_api 发布时间: 20170929

34. Laya.loader加载BUG [ 78%]

...a);         }else if (type==="image"){             var tex=new Texture(data);             tex.url=this._url;             this.complete(tex);         }else if (type==="sound" || type==="htmlimage" || type==="nativeimage"){             th...

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

35. 3D网格添加刚体后设置欧拉角出现位置错误 [ 76%]

...a.BlinnPhongMaterial;         //添加漫反射贴图         Laya.Texture2D.load("res/threeDimen/Physics/rocks.jpg", Laya.Handler.create(this, function (tex) {             this.mat1.albedoTexture = tex;         }));         //平面加载         let plane = this.scene.add...

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

36. Uint8Array的像素数据在ios中无法改变图片纹理,安卓正常 [ 76%]

...另一张 代码如下: private _testSetPixels() { let data = this.test1.texture.getPixels(0, 0, this.test1.width, this.test1.height); let width = this.test1.width; let height = data.length / 4 / width; let tex2d = new Laya.Texture2D(width, height, 1); tex2d.setPixels(data); this.imgAr.texture.set...

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

37. TextureCube. setSixSideImageSources () [ 76%]

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

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

38. Laya.loader.load 教程代码出错 [ 76%]

...教程代码出错            package {     import laya.display.Text;     import laya.display.Sprite;     import laya.utils.Handler;     import laya.resource.Texture;     public class LayaSample {         private var img:Sprite ;         private var index:i...

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

39. laya.loaders.TextureLoader_API3.0 [ 75%]

...Protected All Inherited Externals Only exported Menu Globals "laya/loaders/TextureLoader" TextureLoader Class TextureLoader Hierarchy TextureLoader Implements IResourceLoader Index Methods load wrapTex2D Methods load load(task: ILoadTask): Promise<Texture> Implementation of IResourceLoader.loa...

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

40. localRotationEulerY旋转位置错误 [ 75%]

...  var planeMat = new Laya.BlinnPhongMaterial();         Laya.Texture2D.load("res/grass.png", Laya.Handler.create(this, function (tex: Laya.Texture2D): void {             planeMat.albedoTexture = tex;         }));         //设置纹理平铺和偏移...

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