UMaterialInstance::GetTerrainLayerWeightParameterValue

Get the weightmap index of the given terrain layer weight parameter

Windows
MacOS
Linux

Override Hierarchy

UMaterialInterface::GetTerrainLayerWeightParameterValue()

UMaterialInstance::GetTerrainLayerWeightParameterValue()

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Materials/MaterialInstance.h

Include

#include "Materials/MaterialInstance.h"

Source

/Engine/Source/Runtime/Engine/Private/Materials/MaterialInstance.cpp

Syntax

virtual bool GetTerrainLayerWeightParameterValue
(
    const FHashedMaterialParameterInfo & ParameterInfo,
    int32 & OutWeightmapIndex,
    FGuid & OutExpressionGuid
) const

Remarks

Get the weightmap index of the given terrain layer weight parameter

Returns

True if successful

Parameters

Parameter

Description

ParameterName

The name of the parameter

OutWeightmapIndex

Will contain the values of the parameter if successful

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss