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

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

371. DataTexture2D是做什么用的 [ 82%]

DataTexture2D是做什么用的 我用base64的数据用 var _texture2d:DataTexture2D = new DataTexture2D();  _texture2d.onAsynLoaded(null, image); material.diffuseTexture=_texture2d; 没报错,但是贴上去是纯灰色,不是图片 DataTexture2D怎么用? 2018-06-05 添加评论 免费帖...

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

372. [LayaAir3]Spine释放后,纹理不会被释放掉 [ 82%]

...pDat instanceof Laya.SpineTemplet) {        let obj: object = tmpDat["_textures"];        for (let key in obj) {            if (obj.hasOwnProperty(key)) {                let texture = obj[key] as Laya.SpineTexture;                let pngUrl = texture.realTexture.url; le...

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

373. laya.d3.resource.DataTexture2D [ 82%]

...cumentationAll Packages | All Classes | Index | Frames No Frames DataTexture2DProperties | Methods Packagelaya.d3.resourceClasspublic class DataTexture2DInheritanceDataTexture2D BaseTexture laya.resource.ResourcePublic Properties Hide Inherited Public Properties Show Inherited Public Propert...

来源: laya_api 发布时间: 20170929

374. Sprite-显示图片 [ 82%]

...ya.stage.addChild(ape); ape.loadImage(monkey1Path); // 方法2:使用drawTexture Laya.loader.load(monkey2Path, Laya.Handler.create(this, function () { let monkey2 = Laya.loader.getRes(monkey2Path); let ape2 = new Laya.Sprite(); Laya.stage.addChild(ape2); ape2.graphics.drawTexture(monkey2, 100, 0);...

来源: Laya2.0_示例 发布时间: 20260303

375. getimagedata直接调用无法获取有效像素问题 [ 82%]

...素数据都是0),看起来像是程序设计问题。 而在调用了 texture的 getpixels 得到有效数据。__proto.getPixels=function(x,y,width,height){ if (Render.isWebGL){ return RunDriver.getTexturePixels(this,x,y,width,height); }else { Browser.canvas.size(width,height); Browser.canvas....

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

376. 摄像机渲染到2D纹理纹理问题 [ 82%]

...问题 示例:3D-摄像机-渲染到2DSprite 中, var rtex = new Laya.Texture(renderTargetCamera.renderTarget, Laya.Texture.DEF_UV); renderTargetCamera.renderTarget的类型是RenderTexture在这里无法创建Texture对象, 请问是后续的版本去掉了,还是有所修改,望指导。...

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

377. laya.d3.core.HeightMap_API3.0 [ 81%]

... 单元尺寸。 Returns HeightMap Static createFromImage createFromImage(texture: Texture2D, minHeight: number, maxHeight: number): HeightMap Defined in laya/d3/core/HeightMap.ts:95 从图片生成高度图。 Parameters texture: Texture2D minHeight: number maxHeight: number 最大高度。 Returns...

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

378. [LayaAirIDE3]drawToRenderTexture2D返回纹理对象被垂直翻转了 [ 81%]

[LayaAirIDE3]drawToRenderTexture2D返回纹理对象被垂直翻转了 drawToRenderTexture2D的flipY参数注释描述可选。如果为 true,则垂直翻转纹理。默认为 false。 但实际需要参数传true被绘制的对象才不会翻转 另外绘制以后得纹理有像素丢失很模...

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

379. 滤镜-颜色滤镜 [ 81%]

...ya.Sprite; var Stage = Laya.Stage; var ColorFilter = Laya.ColorFilter; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var ApePath = "../../res/apes/monkey2.png"; var apeTexture; (function() { // 不支持WebGL时自动切换至Canvas Laya....

来源: Laya_示例 发布时间: 20260303

380. 同一个Graphics里面绘制超过20000个矢量rect的情况下,Uncaught Error: IBQuadrangle count [ 81%]

...10000) { var htmlCanvas:HTMLCanvas = a.drawToCanvas(width,height,0,0); var texture:Texture = new Texture(htmlCanvas); var b:Sprite = new Sprite(); b.graphics.drawTexture(texture); a.graphics.clear(true); a.destroy(); a = b; } a.graphics.drawRect(10*i, 10*j, 10, 10, "#ff0000"); count++; } } 2018-11-1...

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