UKismetMaterialLibrary

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Kismet/KismetMaterialLibrary.h

Include

#include "Kismet/KismetMaterialLibrary.h"

Syntax

class UKismetMaterialLibrary : public UBlueprintFunctionLibrary

Functions

Name Description

Public function Static

UMaterialIns...

 

CreateDynamicMaterialInstance

(
    UObject* WorldContextObject,
    UMaterialInterface* Parent,
    FName OptionalName,
    EMIDCreationFlags CreationFlags
)

Creates a Dynamic Material Instance which you can modify during gameplay.

Public function Static

float

 

GetScalarParameterValue

(
    UObject* WorldContextObject,
    UMaterialParameterCollection* ...,
    FName ParameterName
)

Gets a scalar parameter value from the material collection instance.

Public function Static

FLinearColor

 

GetVectorParameterValue

(
    UObject* WorldContextObject,
    UMaterialParameterCollection* ...,
    FName ParameterName
)

Gets a vector parameter value from the material collection instance.

Public function Static

void

 

SetScalarParameterValue

(
    UObject* WorldContextObject,
    UMaterialParameterCollection* ...,
    FName ParameterName,
    float ParameterValue
)

Sets a scalar parameter value on the material collection instance.

Public function Static

void

 

SetVectorParameterValue

(
    UObject* WorldContextObject,
    UMaterialParameterCollection* ...,
    FName ParameterName,
    const FLinearColor& ParameterValue
)

Sets a vector parameter value on the material collection instance.