Navigation
Unreal Engine C++ API Reference > Runtime > Landscape > Materials
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMaterialExpression
- UMaterialExpressionLandscapeLayerSwitch
References
Module | Landscape |
Header | /Engine/Source/Runtime/Landscape/Classes/Materials/MaterialExpressionLandscapeLayerSwitch.h |
Include | #include "Materials/MaterialExpressionLandscapeLayerSwitch.h" |
Syntax
class UMaterialExpressionLandscapeLayerSwitch : public UMaterialExpression
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
FExpressionInput | LayerNotUsed | |
![]() |
FExpressionInput | LayerUsed | |
![]() |
FName | ParameterName | |
![]() |
uint32: 1 | PreviewUsed |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UMaterialExpressionLandscapeLayerSwitch
(
const FObjectInitializer& ObjectInitializer |
Overridden from UMaterialExpression
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
bool | Returns true if GetReferencedTexture() can ever return a valid pointer. | |
![]() ![]() ![]() |
bool | Can this node be renamed? | |
![]() ![]() |
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). |
![]() ![]() ![]() |
FString | Returns the current 'name' of the node (typically a parameter name). | |
![]() ![]() |
uint32 | GetInputType
(
int32 InputIndex |
|
![]() ![]() ![]() |
void | GetLandscapeLayerNames
(
TArray< FName >& OutLayers |
Gets the landscape layer names |
![]() ![]() |
uint32 | GetOutputType
(
int32 InputIndex |
|
![]() ![]() ![]() |
UObject * | Callback to get any texture reference this expression emits. | |
![]() ![]() |
bool | IsResultMaterialAttributes
(
int32 OutputIndex |
Marks certain expression types as outputting material attributes. |
![]() ![]() |
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. |
Overridden from UObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object, and immediately after any undo/redo. |
![]() ![]() |
void | Serialize
(
FStructuredArchive::FRecord Record |
Handles reading, writing, and reference collecting using FArchive. |