Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Materials
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMaterialExpression
- UMaterialExpressionTextureBase
- UMaterialExpressionTextureObject
- UMaterialExpressionTextureSample
- UMaterialExpressionParticleSubUV
- UMaterialExpressionTextureSampleParameter
- UMaterialExpressionTextureObjectParameter
- UMaterialExpressionTextureSampleParameter2D
- PAPER2UMaterialExpressionSpriteTextureSampler
- UMaterialExpressionAntialiasedTextureMask
- UMaterialExpressionMaterialXTextureSampleParameterBlur
- UMaterialExpressionTextureSampleParameterSubUV
- UMaterialExpressionTextureSampleParameter2DArray
- UMaterialExpressionTextureSampleParameterCube
- UMaterialExpressionTextureSampleParameterCubeArray
- UMaterialExpressionTextureSampleParameterVolume
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Materials/MaterialExpressionTextureBase.h |
| Include | #include "Materials/MaterialExpressionTextureBase.h" |
Syntax
class UMaterialExpressionTextureBase : public UMaterialExpression
Variables
| Type | Name | Description | |
|---|---|---|---|
| uint8: 1 | IsDefaultMeshpaintTexture | Is default selected texture when using mesh paint mode texture painting | |
| TEnumAsByte< EMaterialSamplerType > | SamplerType | ||
| TObjectPtr< UTexture > | Texture |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UMaterialExpressionTextureBase
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Automatically determines and set the sampler type for the current texture. | ||
| EMaterialSamplerType | GetSamplerTypeForTexture
(
const UTexture* Texture, |
Returns the default sampler type for the specified texture. | |
| bool | VerifySamplerType
(
ERHIFeatureLevel::Type FeatureLevel, |
Verify that the texture and sampler type. Generates a compiler waring if they do not. |
Overridden from UMaterialExpression
| Type | Name | Description | |
|---|---|---|---|
| bool | Returns true if GetReferencedTexture() can ever return a valid pointer. | ||
| FString | Get a single line description of the material expression (used for lists) | ||
| FText | |||
| UObject * | Callback to get any texture reference this expression emits. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally |