Navigation
Unreal Engine C++ API Reference > Developer > MaterialUtilities > FMaterialUtilities > CreateTexture
References
Module | MaterialUtilities |
Header | /Engine/Source/Developer/MaterialUtilities/Public/MaterialUtilities.h |
Include | #include "MaterialUtilities.h" |
Source | /Engine/Source/Developer/MaterialUtilities/Private/MaterialUtilities.cpp |
static [UTexture2D](API\Runtime\Engine\Engine\UTexture2D) * CreateTexture ( [UPackage](API\Runtime\CoreUObject\UObject\UPackage) * Outer, const [FString](API\Runtime\Core\Containers\FString) & AssetLongName, FIntPoint Size, const [TArray](API\Runtime\Core\Containers\TArray)< [FColor](API\Runtime\Core\Math\FColor) > & Samples, const [FCreateTexture2DParameters](API\Runtime\Engine\FCreateTexture2DParameters) & CreateParams, EObjectFlags Flags )
Remarks
Generates a texture from an array of samples The new texture.
Parameters
Name | Description |
---|---|
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 |