Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Materials
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Materials/MaterialInterface.h |
Include | #include "Materials/MaterialInterface.h" |
Syntax
struct FMaterialTextureInfo
Remarks
This struct holds data about how a texture is sampled within a material.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
float | SamplingScale | The scale used when sampling the texture |
![]() |
int32 | TextureIndex | The texture index in the material resource the data was built from. |
![]() |
FName | TextureName | The texture name. Used for debugging and also to for quick matching of the entries. |
![]() |
FSoftObjectPath | TextureReference | The reference to the texture, used to keep the TextureName valid even if it gets renamed. |
![]() |
int32 | UVChannelIndex | The coordinate index used when sampling the texture |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
|||
![]() |
FMaterialTextureInfo
(
ENoInit |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | IsValid
(
bool bCheckTextureIndex |
Return whether the data is valid to be used |