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

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

471. 纹理的循环模式(TypeScript-3D基础(TS)-LayaAir3D之纹理) [ 74%]

...: ![](img/1.png)(图1) ```typescript //在U方向上使用WARPMODE_CLAMP texture.wrapModeU = Laya.BaseTexture.WARPMODE_CLAMP; //在V方向使用WARPMODE_REPEAT texture.wrapModeV = Laya.BaseTexture.WARPMODE_REPEAT; ``` 设置后(图2): ![](img/2.png)(图2)

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

472. 纹理的循环模式(JavaScript-3D基础(JS)-LayaAir3D之纹理) [ 74%]

...: ![](img/1.png)(图1) ```typescript //在U方向上使用WARPMODE_CLAMP texture.wrapModeU = Laya.BaseTexture.WARPMODE_CLAMP; //在V方向使用WARPMODE_REPEAT texture.wrapModeV = Laya.BaseTexture.WARPMODE_REPEAT; ``` 设置后(图2): ![](img/2.png)(图2)

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

473. laya.d3.core.scene.Lightmap_API3.0 [ 74%]

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

474. laya.d3.core.scene.Scene [ 74%]

...但是可以通过调用 reCache 方法手动刷新。 注意: 1.Sprite texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.time...

来源: laya_api 发布时间: 20170929

475. laya.ui.Image [ 74%]

...源加载完成后,会自动缓存至资源库中。 Image  source : Texture 对象的纹理资源。 Image stage : Stage[read-only] 对舞台 stage 的引用。Sprite staticCache : Boolean 是否静态缓存此对象的当前帧的最终属性。为 true 时,子对象变化时不会自动...

来源: laya_api 发布时间: 20170929

476. 请教各位前辈们,AS的一些API好像layabox没有,求解决方法或者思路,比如 Point 的interpolate方法 具体问题内详 [ 74%]

...答:beginBitmapFill方法已经没有了,可以使用sp.graphics.drawTexture实现类似功能 graphcis Lines 请参考:根据指定的路径数据绘制出图案以及展示Graphics提供的绘图API    第三个问题:关于创建 Graphics 类的 beginGradientFill() 和 lineGradientStyle...

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

477. IOS Native工程,apploader.js报错 [ 74%]

... ConchGraphics.prototype.setSkinMesh = function (ib, vb, eleNum, iStart, texture, mat) { var img = texture.source; var _ = conch.bf; if (ib.conch_id === undefined || !ib._upload) { ib.conch_id = CanvasRenderingContext2D.ID++; ib.conchRef = new ArrayBufferRef(); ib.conchRef.id = ib.conch_id; _.needsz...

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

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

...terMaterial = glitter.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.minInterpD...

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

479. laya.display.Sprite [ 74%]

...是可以通过调用 reCache 方法手动刷新。 注意: 1.Sprite  texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer...

来源: laya_api 发布时间: 20170929

480. 图片如何切割 AS3 [ 74%]

...法调用顺序错了 正确顺序: var img:Image = new Image();  var t:Texture = Laya.loader.getRes(_resUrl); img.graphics.save();//必须要调用 否则报错  img.graphics.clipRect(100,100,200,200);  img.graphics.drawTexture(t);  img.graphics.restore();  this.addChild(img); 2019-01-11 0 0 ...

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