Navigation
API > API/Developer > API/Developer/DatasmithFacade > API/Developer/DatasmithFacade/FDatasmithFacadeMaterialsUtils
Description
Create a new FDatasmithFacadeTexture and automatically fill its properties from the given arguments. The returned pointer can be null if the path in empty and must be deleted after use.
| Name | CreateSimpleTextureElement |
| Type | function |
| Header File | /Engine/Source/Developer/Datasmith/DatasmithFacade/Public/DatasmithFacadeMaterialsUtils.h |
| Include Path | #include "DatasmithFacadeMaterialsUtils.h" |
| Source | /Engine/Source/Developer/Datasmith/DatasmithFacade/Private/DatasmithFacadeMaterialsUtils.cpp |
static FDatasmithFacadeTexture * CreateSimpleTextureElement
(
const TCHAR * InTextureFilePath,
FDatasmithFacadeTexture::ETextureMode InTextureMode
)
Parameters
| Name | Remarks |
|---|---|
| InTextureFilePath | The file path of the texture, used to determine the texture name and label as well. |
| InTextureMode | The mode of the texture, used to determine the texture name and label as well. |