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

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

111. laya2.0 截图功能分享,直接截取屏幕上所有对象 [ 75%]

...戏正常可用 private static _sp: Laya.Sprite = null; private static tempTexture2D: Laya.Texture2D; private static tempTexture: Laya.Texture; /**截图 */ public static drawScreenshot(width, height, x, y) { if (!SwitchHelper.screenDraw) { return null; }  if (!this.tempTexture2D) { this.tempTextur...

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

112. 批量销毁释放内存(ActionScript-3D基础(AS3)-LayaAir3D的内存管理) [ 75%]

... ​ 在2D中,图片使用的是`Texture`纹理(注意不是3D中的`Texture2D`)。但是实质上Texture就是对Texture2D的再封装,Texture的 `bitmap` 属性就是他所属的Texture2D ,Texture本身是记录了Texture2的uv属性,来实现图集中的单图片显示。 ​ 所以...

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

113. 批量销毁释放内存(TypeScript-3D基础(TS)-LayaAir3D的内存管理) [ 75%]

... ​ 在2D中,图片使用的是`Texture`纹理(注意不是3D中的`Texture2D`)。但是实质上Texture就是对Texture2D的再封装,Texture的 `bitmap` 属性就是他所属的Texture2D ,Texture本身是记录了Texture2的uv属性,来实现图集中的单图片显示。 ​ 所以...

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

114. 通过绘制纹理生成的图片,改变scale时会出现图片不绘制的情况 [ 75%]

...绘制的情况 demo项目里Main.ts下的onConfigLoaded方法里,使用Texture2D.setPixels创建了纹理,Sprite通过绘制纹理graphics.drawTexture的方式生成可视化图片,但这个Sprite在改变大小时会出现绘制失败的情况,demo里scale在0.7及更小的情况下就不...

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

115. laya.d3.core.scene.Lightmap_API3.0 [ 75%]

...ghtmapDirection ApplyLightmapEvent Properties lightmapColor lightmapColor: Texture2D Defined in laya/d3/core/scene/Lightmap.ts:9 光照贴图颜色。 lightmapDirection lightmapDirection: Texture2D Defined in laya/d3/core/scene/Lightmap.ts:11 光照贴图方向。 Static ApplyLightmapEvent ApplyLigh...

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

116. 在创建了 Textture2D如何对其进行宽高赋值 [ 75%]

...创建了 Textture2D如何对其进行宽高赋值 你好,我在创建了Texture2D后 ,我想对其进行宽高赋值,我发现没有相关的方法,而width和hight都是只读的。求解答。 另外我想设置像素,我看到可以getPixels ,但没有setPixels也同样求解。 我...

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

117. layabox中纹理的颜色采样问题,用原生combobox也有这个问题 [ 74%]

...复 专注前端三十年 赞同来自: 无雨之地 解决方法,设置Texture2D的filterMode (texture.bitmap as Laya.Texture2D).filterMode = Laya.BaseTexture.FILTERMODE_POINT; 那么问题来了,如何设置所有的默认是这个值呢 2020-12-10 1 0 分享 微博 QZONE 微信 专注前...

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

118. 高级应用-闪光 [ 74%]

...litter.glitterRender.sharedMaterial; glitterMaterial.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/layabox.png"); glitterMaterial.albedo = new Laya.Vector4(1.3, 1.3, 1.3, 1); glitterTemplet.lifeTime = 1.3; glitterTemplet.minSegmentDistance = 0.1; glitterTemplet.minInterpDistance = 0.6; ...

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

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

...cript var material = new Laya.BlinnPhongMaterial(); //漫反射贴图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置材质纹理 material.albedoTexture = texture; })); earth2.meshRenderer.material = material; ``` ![](img/4.png)(图4) ##...

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

120. localRotationEulerY旋转位置错误 [ 74%]

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