ドキュメント

Unity Engine

Unity Engine

GenerateTexture

Generates Texture2D and Sprite Assets based on the settings provided.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

GenerateTexture(TextureGenerationSettings, NativeArray<Color32>)

Generates Texture2D and Sprite Assets based on the settings provided.
public static TextureGenerationOutput GenerateTexture(TextureGenerationSettings settings, NativeArray<Color32> colorBuffer)

Parameters

Settings use for generating Texture2D and Sprite.

Color buffer for generating Texture2D and Sprite.

Returns

Type

Description

TextureGenerationOutputResult of the generation.

GenerateTexture(TextureGenerationSettings, NativeArray<Color>)

Generates Texture2D and Sprite Assets based on the settings provided.
public static TextureGenerationOutput GenerateTexture(TextureGenerationSettings settings, NativeArray<Color> colorBuffer)

Parameters

Settings use for generating Texture2D and Sprite.

Color buffer for generating Texture2D and Sprite.

Returns

Type

Description

TextureGenerationOutputResult of the generation.