Material

Material

Choose your operating system:

Windows

macOS

Linux

On this page

Actions

Copy Material Instance Parameters

Copies over parameters given a material interface (copy each instance following the hierarchy) Very slow implementation, avoid using at runtime. Hopefully we can replace it later with something like CopyInterpParameters() The output is the object itself (this). Copying 'quick parameters only' will result in a much faster copy process but will only copy dynamic scalar, vector and texture parameters on clients.

Target is Material Instance Dynamic

Copy Parameter Overrides

Copy parameter values from another material instance. This will copy only parameters explicitly overridden in that material instance!!

Target is Material Instance Dynamic

Create Dynamic Material Instance

Creates a Dynamic Material Instance for the specified element index, optionally from the supplied material.

Target is Primitive Component

Create Named Dynamic Material Instance

Creates a Dynamic Material Instance for the specified named material override, optionally from the supplied material.

Target is Particle System Component

Get Base Material

Walks up parent chain and finds the base Material that this is an instance of. Just calls the virtual GetMaterial()

Target is Material Interface

Get Custom Primitive Data Index for Scalar Parameter

Gets the index of the scalar parameter for the custom primitive data array

Target is Primitive Component

Get Custom Primitive Data Index for Vector Parameter

Gets the index of the vector parameter for the custom primitive data array

Target is Primitive Component

Get Material

Returns the material used by the element at the specified index

Target is Primitive Component

Get Material from Collision Face Index

Try and retrieve the material applied to a particular collision face of mesh. Used with face index returned from collision trace.

Target is Primitive Component

Get Material Index

Get Material Index

Target is Mesh Component

Get Material Slot Names

Get Material Slot Names

Target is Mesh Component

Get Materials

Get Materials

Target is Mesh Component

Get Named Material

Returns a named material. If this named material is not found, returns NULL.

Target is Particle System Component

Get Num Materials

Return number of material elements in this primitive

Target is Primitive Component

Get Parameter Info

Get Parameter Info

Target is Material Interface

Get Rendering Material Quality Level

Get the clamped state of r.MaterialQualityLevel, see console variable help (allows for scalability, cannot be used in construction scripts) 0: low 1: high 2: medium

Target is Kismet System Library

Get Scalar Parameter Default Value

Gets the default value of a scalar parameter from a material collection.

Target is Material Parameter Collection

Get Scalar Parameter Names

Returns an array of the names of all the scalar parameters in this Material Parameter Collection *

Target is Material Parameter Collection

Get Scalar Parameter Value

Get the current scalar (float) parameter value from an MID

Target is Material Instance Dynamic

Get Scalar Parameter Value By Info

Get the current scalar (float) parameter value from an MID, using MPI (to allow access to layer parameters)

Target is Material Instance Dynamic

Get Texture Parameter Value

Get the current MID texture parameter value

Target is Material Instance Dynamic

Get Texture Parameter Value By Info

Get the current MID texture parameter value, using MPI (to allow access to layer parameters)

Target is Material Instance Dynamic

Get Vector Parameter Default Value

Gets the default value of a scalar parameter from a material collection.

Target is Material Parameter Collection

Get Vector Parameter Names

Returns an array of the names of all the vector parameters in this Material Parameter Collection *

Target is Material Parameter Collection

Get Vector Parameter Value

Get the current MID vector parameter value

Target is Material Instance Dynamic

Get VectorParameter Value By Info

Get the current MID vector parameter value, using MPI (to allow access to layer parameters)

Target is Material Instance Dynamic

Interpolate Material Instance Parameters

Interpolates the scalar and vector parameters of this material instance based on two other material instances, and an alpha blending factor The output is the object itself (this). Supports the case SourceA==this || SourceB==this Both material have to be from the same base material

Target is Material Instance Dynamic

Is Material Slot Name Valid

Is Material Slot Name Valid

Target is Mesh Component

Set Custom Primitive Data Float

Set custom primitive data at index DataIndex. This sets the run-time data only, so it doesn't serialize.

Target is Primitive Component

Set Custom Primitive Data Vector 2

Set custom primitive data, two floats at once, from index DataIndex to index DataIndex + 1. This sets the run-time data only, so it doesn't serialize.

Target is Primitive Component

Set Custom Primitive Data Vector 3

Set custom primitive data, three floats at once, from index DataIndex to index DataIndex + 2. This sets the run-time data only, so it doesn't serialize.

Target is Primitive Component

Set Custom Primitive Data Vector 4

Set custom primitive data, four floats at once, from index DataIndex to index DataIndex + 3. This sets the run-time data only, so it doesn't serialize.

Target is Primitive Component

Set Default Custom Primitive Data Float

Set default custom primitive data at index DataIndex, and marks the render state dirty

Target is Primitive Component

Set Default Custom Primitive Data Vector 2

Set default custom primitive data, two floats at once, from index DataIndex to index DataIndex + 1, and marks the render state dirty

Target is Primitive Component

Set Default Custom Primitive Data Vector 3

Set default custom primitive data, three floats at once, from index DataIndex to index DataIndex + 2, and marks the render state dirty

Target is Primitive Component

Set Default Custom Primitive Data Vector 4

Set default custom primitive data, four floats at once, from index DataIndex to index DataIndex + 3, and marks the render state dirty

Target is Primitive Component

Set Double Vector Parameter Value

Set an MID vector parameter value

Target is Material Instance Dynamic

Set Force Mip Levels to be Resident

Force the streaming system to disregard the normal logic for the specified duration and instead always load all mip-levels for all textures used by this material.

Target is Material Interface

Set Material

Changes the material applied to an element of the mesh.

Target is Primitive Component

Set Material by Name

Changes the material applied to an element of the mesh.

Target is Primitive Component

Set Runtime Virtual Texture Parameter Value

Set an MID texture parameter value

Target is Material Instance Dynamic

Set Runtime Virtual Texture Parameter Value by Info

Set an MID texture parameter value using MPI (to allow access to layer parameters)

Target is Material Instance Dynamic

Set Scalar Parameter for Custom Primitive Data

Set a scalar parameter for custom primitive data. This sets the run-time data only, so it doesn't serialize.

Target is Primitive Component

Set Scalar Parameter for Default Custom Primitive Data

Set a scalar parameter for default custom primitive data. This will be serialized and is useful in construction scripts.

Target is Primitive Component

Set Scalar Parameter Value

Set a MID scalar (float) parameter value

Target is Material Instance Dynamic

Set Scalar Parameter Value by Info

Set a MID scalar (float) parameter value using MPI (to allow access to layer parameters)

Target is Material Instance Dynamic

Set Scalar Parameter Value on Materials

Set all occurrences of Scalar Material Parameters with ParameterName in the set of materials of the SkeletalMesh to ParameterValue

Target is Mesh Component

Set Texture Parameter Value

Set an MID texture parameter value

Target is Material Instance Dynamic

Set Texture Parameter Value by Info

Set an MID texture parameter value using MPI (to allow access to layer parameters)

Target is Material Instance Dynamic

Set Vector Parameter for Custom Primitive Data

Set a vector parameter for custom primitive data. This sets the run-time data only, so it doesn't serialize.

Target is Primitive Component

Set Vector Parameter for Default Custom Primitive Data

Set a vector parameter for default custom primitive data. This will be serialized and is useful in construction scripts.

Target is Primitive Component

Set Vector Parameter Value

Sets a vector parameter value on the material collection instance. Logs if ParameterName is invalid.

Target is Kismet Material Library

Set Vector Parameter Value by Info

Set an MID vector parameter value, using MPI (to allow access to layer parameters)

Target is Material Instance Dynamic

Set Vector Parameter Value on Materials

Set all occurrences of Vector Material Parameters with ParameterName in the set of materials of the SkeletalMesh to ParameterValue

Target is Mesh Component

This API reference document refers to UE 5.0 or earlier. API docs for 5.1 or later are currently being finalized and will be available at a later date.