Navigation
API > API/Developer > API/Developer/MaterialUtilities > API/Developer/MaterialUtilities/FMaterialUtilities
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static UTexture2D * CreateTexture
(
UPackage* Outer, |
Generates a texture from an array of samples | MaterialUtilities.h | |
static UTexture2D * CreateTexture
(
UPackage* Outer, |
Generates a texture from an array of samples | MaterialUtilities.h |
CreateTexture(UPackage *, const FString &, FIntPoint, const TArray< FColor > &, const FCreateTexture2DParameters &, EObjectFlags)
Description
Generates a texture from an array of samples
| Name | CreateTexture |
| Type | function |
| Header File | /Engine/Source/Developer/MaterialUtilities/Public/MaterialUtilities.h |
| Include Path | #include "MaterialUtilities.h" |
| Source | /Engine/Source/Developer/MaterialUtilities/Private/MaterialUtilities.cpp |
static UTexture2D * CreateTexture
(
UPackage * Outer,
const FString & AssetLongName,
FIntPoint Size,
const TArray < FColor > & Samples,
const FCreateTexture2DParameters & CreateParams,
EObjectFlags Flags
)
The new texture.
Parameters
| Name | Remarks |
|---|---|
| Outer | Outer for the material and texture objects, if NULL new packages will be created for each asset |
| AssetLongName | Long asset path for the new texture |
| Size | Resolution of the texture to generate (must match the number of samples) |
| Samples | Color data for the texture |
| CreateParams | Params about how to set up the texture |
| Flags | ObjectFlags for the new texture |
CreateTexture(UPackage *, const FString &, FIntPoint, const TArray< FColor > &, TextureCompressionSettings, TextureGroup, EObjectFlags, bool, const FGuid &)
Description
Generates a texture from an array of samples
| Name | CreateTexture |
| Type | function |
| Header File | /Engine/Source/Developer/MaterialUtilities/Public/MaterialUtilities.h |
| Include Path | #include "MaterialUtilities.h" |
| Source | /Engine/Source/Developer/MaterialUtilities/Private/MaterialUtilities.cpp |
static UTexture2D * CreateTexture
(
UPackage * Outer,
const FString & AssetLongName,
FIntPoint Size,
const TArray < FColor > & Samples,
TextureCompressionSettings CompressionSettings,
TextureGroup LODGroup,
EObjectFlags Flags,
bool bSRGB,
const FGuid & SourceGuidHash
)
The new texture.
Parameters
| Name | Remarks |
|---|---|
| Outer | Outer for the material and texture objects, if NULL new packages will be created for each asset |
| AssetLongName | Long asset path for the new texture |
| Size | Resolution of the texture to generate (must match the number of samples) |
| Samples | Color data for the texture |
| CompressionSettings | Compression settings for the new texture |
| LODGroup | LODGroup for the new texture |
| Flags | ObjectFlags for the new texture |
| bSRGB | Whether to set the bSRGB flag on the new texture |
| SourceGuidHash | (optional) Hash (stored as Guid) to use part of the texture source's DDC key. |