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

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

191. Unlit材质详解(JavaScript-3D基础(JS)-模型材质详解) [ 84%]

...or4` 反照率颜色。 `albedoIntensity:Number` 反照率强度。 `albedoTexture:BaseTexture` 反照率贴图。 `enableVertexColor:Boolean` 是否支持顶点色。 `renderMode:int` [write-only] 设置渲染模式。 `tilingOffset:Vector4` 纹理平铺和偏移。 #### 创建和使用材质 图1...

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

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

...戏正常可用 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

193. 不带格式后缀的图片无法成功加载 [ 84%]

...onsole.log(picTemp.width) // undefined let nodee = new Laya.Sprite() nodee.texture = picTemp nodee.width = 500 nodee.height = 250 nodee.x = 100 nodee.y = 350 Laya.stage.addChild(nodee) }));上面这个图片无法正常显示,打印 texture 的宽是 undefined,如果是带后缀的图片,比...

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

194. 显示与切换图片(ActionScript-LayaAir基础篇(AS3)-位图) [ 84%]

...基础,本篇从API到示例分别介绍Sprite.loadImage与Graphics.drawTexture两种显示图片的方法。 ## 1、用loadImage方法显示与切换图片 ### 1.1 loadImage API概述 在API文档中搜索laya.display.Sprite,可以找到loadImage()方法,如图1所示,我们先熟悉一下...

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

195. laya.display.Graphics_API3.0 [ 84%]

...llipse drawImage drawLine drawLines drawPath drawPie drawPoly drawRect drawTexture drawTextures drawTriangles fillBorderText fillText fillTexture getBounds loadImage removeCmd restore rotate save scale strokeText transform translate Constructors constructor new Graphics(): Graphics Defined in laya/d...

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

196. 怎么加载网络上的图片 [ 84%]

...系统下 blendMode='lighter' 图片异常 IDE1.7.8 json图集加载问题 Texture图片能否进行翻转? 路径是对的,但老是,调试控制台提示:错误,图片是IDE自带的,也不显示 为什么有的图片打包,有的图片不打包? 如图 如何获取图片每个像...

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

197. laya.ui.AutoBitmap_API3.0 [ 84%]

...llipse drawImage drawLine drawLines drawPath drawPie drawPoly drawRect drawTexture drawTextures drawTriangles fillBorderText fillText fillTexture getBounds loadImage removeCmd restore rotate save scale setState strokeText transform translate Constructors constructor new AutoBitmap(): AutoBitmap Inhe...

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

198. 寻路系统(ActionScript-3D基础(AS3)-LayaAir3D之高级应用) [ 84%]

... { .......//前面摄影机,猴子精灵相关操作忽略 var heightMap:Texture2D = Loader.getRes("res/threeDimen/scene/TerrainScene/Assets/HeightMap.png") as Texture2D; //初始化MeshTerrainSprite3D terrainSprite = MeshTerrainSprite3D.createFromMeshAndHeightMap(meshSprite3D.meshFilter.sharedMes...

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

199. laya.net.LoaderManager_API3.0 [ 84%]

...ds cacheRes cancelLoadByUrl cancelLoadByUrls clearRes clearResByGroup clearTextureRes clearUnLoaded create decodeBitmaps event getRes hasListener load off offAll offAllCaller on once setGroup Constructors constructor new LoaderManager(): LoaderManager Defined in laya/net/LoaderManager.ts:72 创建...

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

200. [LayaAir3]Laya.loader 加载png图片失真 [ 84%]

...er.load(url, {                             type: Laya.Loader.TEXTURE2D,                             propertyParams: {                                 premultiplyAlpha: true,    // 不预乘alpha                                 filterMode:...

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