Navigation
API > API/Runtime > API/Runtime/Landscape > API/Runtime/Landscape/Materials
Inheritance Hierarchy
- UMaterialExpressionCustomOutput
- UMaterialExpressionLandscapeGrassOutput
References
| Module | Landscape |
| Header | /Engine/Source/Runtime/Landscape/Classes/Materials/MaterialExpressionLandscapeGrassOutput.h |
| Include | #include "Materials/MaterialExpressionLandscapeGrassOutput.h" |
Syntax
UCLASS (CollapseCategories, HideCategories=Object, MinimalAPI)
class UMaterialExpressionLandscapeGrassOutput : public UMaterialExpressionCustomOutput
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< FGrassInput > | GrassTypes |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UMaterialExpressionLandscapeGrassOutput
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| int32 | Compile
(
FMaterialCompiler* Compiler, |
||
| bool | GenerateHLSLExpression
(
FMaterialHLSLGenerator& Generator, |
||
| void | GetCaption
(
TArray< FString >& OutCaptions |
||
| UE::Shader::EValueType | GetCustomOutputType
(
int32 OutputIndex |
||
| FString | |||
| FExpressionInput * | GetInput
(
int32 InputIndex |
||
| FName | GetInputName
(
int32 InputIndex |
||
| TArrayView< FExpressionInput * > | |||
| uint32 | GetInputType
(
int32 InputIndex |
||
| int32 | |||
| int32 | |||
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
||
| void | ValidateInputName
(
FGrassInput& Input |
Constants
| Name | Description |
|---|---|
| MaxGrassTypes | Maximum number of supported grass types on a given landscape material. Whenever adjusting this, make sure to update LandscapeGrassWeight.usf accordingly: |
| PinDefaultName |