Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Materials
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMaterialExpression
- UMaterialExpressionTextureBase
- UMaterialExpressionTextureSample
- UMaterialExpressionTextureSampleParameter
- UMaterialExpressionTextureObjectParameter
- UMaterialExpressionTextureSampleParameter2D
- UMaterialExpressionAntialiasedTextureMask
- UMaterialExpressionMaterialXTextureSampleParameterBlur
- UMaterialExpressionTextureSampleParameterSubUV
- UMaterialExpressionTextureSampleParameter2DArray
- UMaterialExpressionTextureSampleParameterCube
- UMaterialExpressionTextureSampleParameterCubeArray
- UMaterialExpressionTextureSampleParameterVolume
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/Materials/MaterialExpressionTextureSampleParameter.h |
| Include | #include "Materials/MaterialExpressionTextureSampleParameter.h" |
Syntax
UCLASS (CollapseCategories, Abstract, HideCategories=Object, MinimalAPI)
class UMaterialExpressionTextureSampleParameter : public UMaterialExpressionTextureSample
Variables
| Type | Name | Description | |
|---|---|---|---|
| FParameterChannelNames | ChannelNames | ||
| FGuid | ExpressionGUID | GUID that should be unique within the material, this is used for parameter renaming. | |
| FName | Group | The name of the parameter Group to display in MaterialInstance Editor. Default is None group | |
| FName | ParameterName | ||
| int32 | SortPriority | Controls where the this parameter is displayed in a material instance parameter list. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UMaterialExpressionTextureSampleParameter
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | |||
| FParameterChannelNames | |||
| void | Sets the default texture if none is set | ||
| bool | SetParameterValue
(
FName InParameterName, |
||
| bool | TextureIsValid
(
UTexture* InTexture, |
Return true if the texture is a movie texture |
Overridden from UMaterialExpression
| Type | Name | Description | |
|---|---|---|---|
| bool | Can this node be renamed? | ||
| int32 | Compile
(
FMaterialCompiler* Compiler, |
Create the new shader code chunk needed for the Abs expression | |
| bool | GenerateHLSLExpression
(
FMaterialHLSLGenerator& Generator, |
||
| void | GetCaption
(
TArray< FString >& OutCaptions |
Returns the text to display on the material expression (in the material editor). | |
| FString | Returns the current 'name' of the node (typically a parameter name). | ||
| FGuid & | Callback to access derived classes' parameter expression id. | ||
| FName | |||
| bool | GetParameterValue
(
FMaterialParameterMetadata& OutMeta |
||
| bool | Parameter Name functions, this is requires as multiple class have ParameterName but are not UMaterialExpressionParameter due to class hierarchy. | ||
| bool | MatchesSearchQuery
(
const TCHAR* SearchQuery |
MatchesSearchQuery: Check this expression to see if it matches the search query | |
| void | SetEditableName
(
const FString& NewName |
Sets the current 'name' of the node (typically a parameter name) Only valid to call on a node that previously returned CanRenameNode() = true. | |
| void | SetParameterName
(
const FName& Name |
||
| bool | SetParameterValue
(
const FName& Name, |
||
| void | ValidateParameterName
(
const bool bAllowDuplicateName |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally |