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

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

61. Laya.loader.load(xx) 当地址""的时候,会报错。 [ 87%]

...          }                     tex = new Texture2D(0, 0, format, false, false);                     tex.wrapModeU = exports.WarpMode.Clamp;                     tex.wrapModeV = exports.WarpMode.Clamp;          ...

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

62. laya.d3.shader.pbr.PBRDefaultDFG_API3.0 [ 87%]

...FG Methods DefaultDfgTexture Accessors Static defaultDFG get defaultDFG(): Texture2D set defaultDFG(value: Texture2D): void Defined in laya/d3/shader/pbr/PBRDefaultDFG.ts:13 Returns Texture2D Defined in laya/d3/shader/pbr/PBRDefaultDFG.ts:16 Parameters value: Texture2D Returns void Methods Static De...

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

63. 怎么给从模型生成的地形TerrainMaterial材质??? [ 87%]

...aterial = new Laya.TerrainMaterial(); terMaterial.diffuseTexture1=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture2=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture3=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture4=new Laya.Texture2D.load("map2.png"); te...

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

64. 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function [ 87%]

...同来自: 请问具体是怎样实现的? 我也遇到了这个问题 Texture2D.load("res/env/mountain1_3.png", Handler.create(null, function(tex:Texture2D):void {             menu_sprite_jian.graphics.drawTexture(tex,0,0);             }));这样然后无法drawtexture报...

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

65. 3d文字在浏览器能正常运行,打包后使用时会报错 [ 86%]

...text":No function was found that matched the signature provided   在this.texture2D.loadImageSource(this.cav);报错   this.cav = Laya.Browser.createElement("canvas"); this.cav.width = 256; this.cav.height = 256;  var cxt = this.cav.getContext("2d"); cxt.fillStyle = 'rgb(' + '220' + ',' + '5' + '...

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

66. [LayaAir2]在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 85%]

...ideo.video; videoTexture.video.play(); videoTexture.video.loop = true; var texture2D = new Laya.Texture2D(videoTexture.video.videoWidth,videoTexture.video.videoHeight); var texture:Laya.Texture = new Laya.Texture(texture2D); var image:Laya.Image = new Laya.Image(); image.texture = texture; image.wid...

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

67. texture 怎么改变颜色 [ 85%]

...复问题请先登录 发起人 zsytssk 相关问题 Texture如何转换成Texture2D有人搞过吗 微信小游戏 sharedCanvas 创建的Texture,能否再调用Texture.createFromTexture创建新纹理 BoneSlot 对象 showSlotData 无效 texture 替换后显示错误! 微信真机下游戏MAX_TE...

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

68. laya.d3.resource.TextureGenerator [ 85%]

...thods  MethodDefined By  TextureGenerator()TextureGenerator  _generateTexture2D(texture:Texture2D, textureWidth:int, textureHeight:int, func:Function):void[static] TextureGenerator  haloTexture(x:int, y:int, maxX:int, maxY:int, index:int, data:Uint8Array):void[static] TextureGenerator  ligh...

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

69. 天空-天空穹 [ 84%]

...skyDome = new Laya.SkyDome(); camera.sky = skyDome; skyDome.texture = Laya.Texture2D.load("../../res/threeDimen/env/sp_default/env.png");class SkyDomeSample { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.S...

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

70. 高级应用-寻路导航 [ 84%]

..."../../res/threeDimen/scene/TerrainScene/Assets/HeightMap.png", clas: Laya.Texture2D, priority: 1, params: [true] }, { url: "../../res/threeDimen/scene/TerrainScene/Assets/AStarMap.png", clas: Laya.Texture2D, priority: 1, params: [true] } ]; Laya.loader.create(resource, Laya.Handler.create(this, onL...

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