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