Navigation
API > API/Plugins > API/Plugins/AvalancheShapes
References
| Module | AvalancheShapes |
| Header | /Engine/Plugins/Experimental/Avalanche/Source/AvalancheShapes/Public/AvaShapeParametricMaterial.h |
| Include | #include "AvaShapeParametricMaterial.h" |
Syntax
USTRUCT (BlueprintType )
struct FAvaShapeParametricMaterial
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bUseAutoTranslucency | ||
| bool | bUseTranslucentMaterial | Whether we use opaque or translucent material, set automatically when opacity is below 1 | |
| bool | bUseTwoSidedMaterial | Whether the material is one sided or two sided | |
| bool | bUseUnlitMaterial | Whether the material is unlit or default lit | |
| FLinearColor | ColorA | Primary colour for the material. | |
| FLinearColor | ColorB | Secondary colour for the material. | |
| TArray< TObjectPtr< UMaterialInterface > > | DefaultMaterials | Parent material |
Opaque Lit
Translucent Lit
Opaque Unlit
Translucent Unlit ... |
| float | GradientOffset | Offset for gradient style material. | |
| TArray< TObjectPtr< UMaterialInstanceDynamic > > | InstanceMaterials | Material instances corresponding to the parent material instanced | |
| EAvaShapeParametricMaterialStyle | Style | Default style for the material. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FAvaShapeParametricMaterial
(
const FAvaShapeParametricMaterial& Other |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | CopyFromMaterialParameters
(
UMaterialInstance* InMaterial |
||
| UMaterialInterface * | Get default parent material currently active | ||
| float | |||
| UMaterialInstanceDynamic * | GetMaterial () |
Get active up to date material instance | |
| UMaterialInstanceDynamic * | GetOrCreateMaterial
(
UObject* InOuter |
Get active up to date material instance or creates it | |
| const FLinearColor & | |||
| const FLinearColor & | |||
| EAvaShapeParametricMaterialStyle | GetStyle () |
||
| bool | |||
| bool | |||
| bool | |||
| bool | |||
| bool | IsParametricMaterial
(
UMaterialInterface* InMaterial, |
Check if input material is a parametric material | |
| FOnMaterialChanged & | Called when active material index changed | ||
| FOnMaterialParameterChanged & | Called when active material parameters are updated | ||
| void | SetGradientOffset
(
float InOffset |
||
| void | SetMaterial
(
UMaterialInstanceDynamic* InMaterial |
Set instanced material currently active | |
| void | SetMaterialParameterValues
(
UMaterialInstanceDynamic* InMaterialInstance, |
Set parameter values on a material instance | |
| void | SetPrimaryColor
(
const FLinearColor& InColor |
||
| void | SetSecondaryColor
(
const FLinearColor& InColor |
||
| void | SetStyle
(
EAvaShapeParametricMaterialStyle InStyle |
||
| void | SetUseAutoTranslucency
(
bool bInUse |
||
| void | SetUseTranslucentMaterial
(
bool bInUse |
||
| void | SetUseTwoSidedMaterial
(
bool bInUse |
||
| void | SetUseUnlitMaterial
(
bool bInUse |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FAvaShapeParametricMaterial & | operator=
(
const FAvaShapeParametricMaterial& Other |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EMaterialType |
Typedefs
| Name | Description |
|---|---|
| FOnMaterialChanged | |
| FOnMaterialParameterChanged |
Constants
| Name | Description |
|---|---|
| OnMaterialChangedDelegate |