FMaterialTextureInfo

This struct holds data about how a texture is sampled within a material.

Windows
MacOS
Linux

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

Name Description

Public variable

float

 

SamplingScale

The scale used when sampling the texture

Public variable

int32

 

TextureIndex

The texture index in the material resource the data was built from.

Public variable

FName

 

TextureName

The texture name. Used for debugging and also to for quick matching of the entries.

Public variable

FSoftObjectPath

 

TextureReference

The reference to the texture, used to keep the TextureName valid even if it gets renamed.

Public variable

int32

 

UVChannelIndex

The coordinate index used when sampling the texture

Constructors

Functions

Name Description

Public function Const

bool

 

IsValid

(
    bool bCheckTextureIndex
)

Return whether the data is valid to be used

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback