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

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

241. drawToTexture截大图有问题,会丢失 [ 76%]

drawToTexture截大图有问题,会丢失 private nsp:Laya.Sprite;     init(): void {         this.nsp=new Laya.Sprite();         this.nsp.graphics.drawRect(0,0,1600,1600,"#ff0000");         this.nsp.mouseThrough=true;         Laya.stage.addChild(this.nsp);         this.nsp....

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

242. [LayaAir3]3.3 beta3 ios 15pro偶尔材质会变黑 [ 76%]

...   u_AlbedoColorScale: { type: Float, default: 1.0 },         u_AlbedoTexture: { type: Texture2D, options: { define: "ALBEDOTEXTURE" } },          // u_AlbedoTexture2: { type: Texture2D, options: { define: "ALBEDOTEXTURE2" } },         // u_AlbedoTexture2Offset: { type: Vector4, defaul...

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

243. laya.display.Sprite [ 76%]

...动更新缓存,只能通过调用reCache方法手动刷新。Sprite  texture : Texture 设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。 等同于graphics.clear();graphics.drawImage(),但性能更高 还可以赋值一个图片地址,则...

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

244. 材质-BlinnPhong-高光贴图 [ 76%]

...nedMeshSprite3d.skinnedMeshRender.materials[i]; //高光贴图 mat.specularTexture = Laya.Texture2D.load(this.specularMapUrl[i]); } Laya.timer.frameLoop(1, this, function () { dude1.transform.rotate(this.rotation); dude2.transform.rotate(this.rotation); }); }class BlinnPhong_SpecularMap { private sc...

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

245. laya.media.SoundNode_API3.0 [ 76%]

...leY scene scrollRect skewX skewY source stage staticCache stopEvent target texture timer transform url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains customRender destroy...

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

246. laya.map.GridSprite_API3.0 [ 76%]

...votY rotation scaleX scaleY scene scrollRect skewX skewY stage staticCache texture timer transform url viewport visible width x y zOrder Methods _initialize _processActive addAniSprite addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearAll clearTimer contain...

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

247. laya.particle.Particle2D_API3.0 [ 76%]

...aleX scaleY scene scrollRect skewX skewY source stage staticCache template texture timer transform url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance advanceTime bubbleEvent callLater clearTimer contains customRe...

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

248. graphics的fillTexture 圆角图边缘有多出线条 [ 76%]

graphics的fillTexture 圆角图边缘有多出线条 var texture = LoadingManager.instance.getRes("res/progress.png"); var graphics=new Laya.Graphics(); graphics.fillTexture(texture,0,0,texture.width,texture.height,"repeat"); 如果用drawTexture就没问题,因为平铺需求 需要用到fillTe...

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

249. BlinnPhong材质详解(JavaScript-3D基础(JS)-模型材质详解) [ 76%]

...tor4`漫反射颜色。 `albedoIntensity:Number` 漫反射强度。 `albedoTexture:BaseTexture` 漫反射贴图。 `enableLighting:Boolean` 是否启用光照。 `normalTexture:BaseTexture` 法线贴图。 `renderMode:int` [write-only] 设置渲染模式。 `shininess:Number` 高光强度,范围为0...

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

250. laya.ui.Image_API3.0 [ 76%]

...scaleY scene scrollRect sizeGrid skewX skewY skin source stage staticCache texture timer toolTip top transform url useSourceSize viewport visible width x y zOrder Methods _initialize _processActive _setHeight _setSkin _setWidth addChild addChildAt addChildren addComponent addComponentInstance bubble...

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