GenerateTexture
Generates Texture2D and Sprite Assets based on the settings provided.
Read time 1 minuteLast updated 14 days ago
Definition
- Type: Method
- Namespace: UnityEditor.AssetImporters
- Assembly: UnityEditor.CoreModule
GenerateTexture(TextureGenerationSettings, NativeArray<Color32>)
public static TextureGenerationOutput GenerateTexture(TextureGenerationSettings settings, NativeArray<Color32> colorBuffer)
Parameters
Returns
Type | Description |
|---|---|
| TextureGenerationOutput | Result of the generation. |
Remarks
As Unity may perform in-place processing of , it is recommended that you make a copy of its original data if you need it after this method returns.
colorBufferGenerateTexture(TextureGenerationSettings, NativeArray<Color>)
public static TextureGenerationOutput GenerateTexture(TextureGenerationSettings settings, NativeArray<Color> colorBuffer)
Parameters
Returns
Type | Description |
|---|---|
| TextureGenerationOutput | Result of the generation. |
Remarks
As Unity may perform in-place processing of , it is recommended that you make a copy of its original data if you need it after this method returns.
colorBuffer