Material

Material

Windows
MacOS
Linux
On this page

Actions

CopyMaterialInstanceParameters

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

CopyParameterOverrides

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 which you can modify during gameplay.

Target is Kismet Material Library

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 Material

Returns the material used by the element at the specified index

Target is Primitive 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 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 Value

Gets a scalar parameter value from the material collection instance. Logs if ParameterName is invalid.

Target is Kismet Material Library

Get Vector Parameter Value

Gets a vector parameter value from the material collection instance. Logs if ParameterName is invalid.

Target is Kismet Material Library

GetScalarParameterValue

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

Target is Material Instance Dynamic

GetTextureParameterValue

Get the current MID texture parameter value

Target is Material Instance Dynamic

GetVectorParameterValue

Get the MIC vector parameter value

Target is Material Instance Constant

InterpolateMaterialInstanceParameters

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

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 Scalar Parameter Value

Set a MID scalar (float) parameter value

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 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 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

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback