Navigation
API > API/Runtime > API/Runtime/Landscape > API/Runtime/Landscape/Materials
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMaterialExpression
- UMaterialExpressionCustomOutput
- UMaterialExpressionLandscapeGrassOutput
References
| Module | Landscape |
| Header | /Engine/Source/Runtime/Landscape/Classes/Materials/MaterialExpressionLandscapeGrassOutput.h |
| Include | #include "Materials/MaterialExpressionLandscapeGrassOutput.h" |
Syntax
class UMaterialExpressionLandscapeGrassOutput : public UMaterialExpressionCustomOutput
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< FGrassInput > | GrassTypes |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UMaterialExpressionLandscapeGrassOutput
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ValidateInputName
(
FGrassInput& Input |
Overridden from UMaterialExpressionCustomOutput
| Type | Name | Description | |
|---|---|---|---|
| FString | |||
| int32 | Override to limit the maximum number of outputs. | ||
| int32 | Override to enable multiple outputs. |
Overridden from UMaterialExpression
| Type | Name | Description | |
|---|---|---|---|
| int32 | Compile
(
FMaterialCompiler* Compiler, |
Create the new shader code chunk needed for the Abs expression | |
| void | GetCaption
(
TArray< FString >& OutCaptions |
Returns the text to display on the material expression (in the material editor). | |
| FExpressionInput * | GetInput
(
int32 InputIndex |
||
| FName | GetInputName
(
int32 InputIndex |
||
| TArrayView< FExpressionInput * > | Get the expression inputs supported by this expression (Note: property inputs NOT included). | ||
| uint32 | GetInputType
(
int32 InputIndex |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally |
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 |