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

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

241. laya.display.Sprite [ 76%]

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

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

242. 材质-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_示例 发布时间: 20251209

243. 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

244. 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

245. 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

246. 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

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

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

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

248. 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

249. 材质-BlinnPhong-法线贴图 [ 76%]

...material = meshSprite3D.meshRender.material; //法线贴图 material.normalTexture = Laya.Texture2D.load(this.normalMapUrl[i]); } Laya.timer.frameLoop(1, this, function () { monster1.transform.rotate(this.rotation); monster2.transform.rotate(this.rotation); }); }class BlinnPhong_NormalMap { private ...

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

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

...; this.htmlvideo.video.addEventListener("loadedmetadata",()=>{ var videoTexture:Laya.VideoTexture = new Laya.VideoTexture(); videoTexture.video = this.htmlvideo.video; videoTexture.video.play(); videoTexture.video.loop = true; var texture2D = new Laya.Texture2D(videoTexture.video.videoWidth,video...

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