大约有 1,735 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0084 秒)
Laya_社区(1392) Laya3.0_api(107) laya_api(68) Laya2.0_api(68) Laya2.0_文档(65) Laya3.0_文档(22) Laya_示例(8) Laya2.0_示例(5)
...or4` 反照率颜色。 `albedoIntensity:Number` 反照率强度。 `albedoTexture:BaseTexture` 反照率贴图。 `enableVertexColor:Boolean` 是否支持顶点色。 `renderMode:int` [write-only] 设置渲染模式。 `tilingOffset:Vector4` 纹理平铺和偏移。 #### 创建和使用材质 图1...
来源: Laya2.0_文档 发布时间: 20210715
...戏正常可用 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
...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
...基础,本篇从API到示例分别介绍Sprite.loadImage与Graphics.drawTexture两种显示图片的方法。 ## 1、用loadImage方法显示与切换图片 ### 1.1 loadImage API概述 在API文档中搜索laya.display.Sprite,可以找到loadImage()方法,如图1所示,我们先熟悉一下...
来源: Laya2.0_文档 发布时间: 20210715
...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
...系统下 blendMode='lighter' 图片异常 IDE1.7.8 json图集加载问题 Texture图片能否进行翻转? 路径是对的,但老是,调试控制台提示:错误,图片是IDE自带的,也不显示 为什么有的图片打包,有的图片不打包? 如图 如何获取图片每个像...
来源: Laya_社区 发布时间: 20170220
...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
... { .......//前面摄影机,猴子精灵相关操作忽略 var heightMap:Texture2D = Loader.getRes("res/threeDimen/scene/TerrainScene/Assets/HeightMap.png") as Texture2D; //初始化MeshTerrainSprite3D terrainSprite = MeshTerrainSprite3D.createFromMeshAndHeightMap(meshSprite3D.meshFilter.sharedMes...
来源: Laya2.0_文档 发布时间: 20210714
...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
...er.load(url, { type: Laya.Loader.TEXTURE2D, propertyParams: { premultiplyAlpha: true, // 不预乘alpha filterMode:...
来源: Laya_社区 发布时间: 20250819