大约有 226 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0055 秒)
Laya_社区(106) Laya3.0_api(65) Laya2.0_文档(28) Laya_示例(18) Laya3.0_文档(5) laya_api(2) Laya2.0_api(2)
...number, canvasHeight: number, offsetX: number, offsetY: number, rt?: RenderTexture2D | null): Texture | RenderTexture2D Inherited from Text.drawToTexture Defined in laya/display/Sprite.ts:1259 绘制到一个Texture对象 Parameters canvasWidth: number canvasHeight: number offsetX: number offsetY: n...
来源: Laya3.0_api 发布时间: 20231115
...number, canvasHeight: number, offsetX: number, offsetY: number, rt?: RenderTexture2D | null): Texture | RenderTexture2D Inherited from Text.drawToTexture Defined in laya/display/Sprite.ts:1259 绘制到一个Texture对象 Parameters canvasWidth: number canvasHeight: number offsetX: number offsetY: n...
来源: Laya3.0_api 发布时间: 20231115
...e front left right up down Static getTexturePixel getTexturePixel(texture: Texture2D): ArrayBufferView Defined in laya/d3/core/Camera.ts:150 get PixelTexture Parameters texture: Texture2D Returns ArrayBufferView Static instantiate instantiate(original: Sprite3D, parent?: Node, worldPositionStays?: b...
来源: Laya3.0_api 发布时间: 20231115
...e front left right up down Static getTexturePixel getTexturePixel(texture: Texture2D): ArrayBufferView Inherited from Camera.getTexturePixel Defined in laya/d3/core/Camera.ts:150 get PixelTexture Parameters texture: Texture2D Returns ArrayBufferView Static instantiate instantiate(original: Sprite3D,...
来源: Laya3.0_api 发布时间: 20231115
...以初始化A*的地图数据 //读取地形图 this.aStarMap = Loader.getTexture2D("res/threeDimen/scene/TerrainScene/Assets/AStarMap.png"); //获得地图数据 var aStarArr = this.createGridFromAStarMap(this.aStarMap); //使用astar初始化地图数据 this.graph = new (window as any).Graph(aSta...
来源: Laya3.0_文档 发布时间: 20230303
...aterial = mat; })); ``` ##### 纹理Texture加载 单个纹理加载使用`Texture2D.load()`方法,示例代码如下: ```typescript //加载纹理,省略若干代码,仅为加载示例 Laya.Texture2D.load("xx/xx.png", Laya.Handler.create(null, function(Texture) { //使用纹理 var earth1 = sce...
来源: Laya2.0_文档 发布时间: 20210714