Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

Engine.MaterialInstance

Extends
MaterialInterface
Modifiers
abstract native ( Material )

Copyright 1998-2008 Epic Games, Inc. All Rights Reserved.

Core.Object
|   
+-- Engine.Surface
   |   
   +-- Engine.MaterialInterface
      |   
      +-- Engine.MaterialInstance

Direct Known Subclasses:

MaterialInstanceConstant, MaterialInstanceTimeVarying

Variables Summary
boolbHasStaticPermutationResource
boolbStaticPermutationDirty
boolReentrantFlag
array<texture>ReferencedTextures
pointerResources[2]
pointerStaticParameters[2]
pointerStaticPermutationResources[2]
MaterialInstance
MaterialInterfaceParent
PhysicalMaterialPhysMaterial
Inherited Variables from Engine.MaterialInterface
PreviewMesh

Functions Summary
function ClearParameterValues ()
function SetFontParameterValue (name ParameterName, Font FontValue, int FontPage)
function SetParent (MaterialInterface NewParent)
function SetScalarCurveParameterValue (name ParameterName, InterpCurveFloat Value)
function SetScalarParameterValue (name ParameterName, float Value)
function SetTextureParameterValue (name ParameterName, Texture Value)
function SetVectorParameterValue (name ParameterName, LinearColor Value)
Inherited Functions from Engine.MaterialInterface
GetFontParameterValue, GetMaterial, GetPhysicalMaterial, GetScalarCurveParameterValue, GetScalarParameterValue, GetTextureParameterValue, GetVectorCurveParameterValue, GetVectorParameterValue
Inherited Functions from Engine.Surface
GetSurfaceHeight, GetSurfaceWidth


Variables Detail

bHasStaticPermutationResource Source code

var bool bHasStaticPermutationResource;
indicates whether the instance has static permutation resources (which are required when static parameters are present)

bStaticPermutationDirty Source code

var native transient bool bStaticPermutationDirty;
indicates whether the static permutation resource needs to be updated on PostEditChange()

ReentrantFlag Source code

var private const native bool ReentrantFlag;

ReferencedTextures Source code

var private const array<texture> ReferencedTextures;
Array of textures referenced, updated in PostLoad. These are needed to keep the textures used by material resources from getting destroyed by realtime GC.

Resources[2] Source code

var const native duplicatetransient pointer Resources[2];

StaticParameters[2] Source code

var const native duplicatetransient pointer StaticParameters[2];
The set of static parameters that this instance will be compiled with, one for sm3 and one for sm2. This is indexed by EMaterialShaderPlatform.

StaticPermutationResources[2] Source code

var const native duplicatetransient pointer StaticPermutationResources[2];
The material resources for this instance, one for sm3 and one for sm2. This is indexed by EMaterialShaderPlatform.

MaterialInstance

Parent Source code

var(MaterialInstance) const MaterialInterface Parent;

PhysMaterial Source code

var(MaterialInstance) PhysicalMaterial PhysMaterial;
Physical material to use for this graphics material. Used for sounds, effects etc.


Functions Detail

ClearParameterValues Source code

native function ClearParameterValues ( )
Removes all parameter values

SetFontParameterValue Source code

native function SetFontParameterValue ( name ParameterName, Font FontValue, int FontPage )
Sets the value of the given font parameter.
@param ParameterName The name of the font parameter
@param OutFontValue New font value to set for this MIC
@param OutFontPage New font page value to set for this MIC

SetParent Source code

native function SetParent ( MaterialInterface NewParent )

SetScalarCurveParameterValue Source code

native function SetScalarCurveParameterValue ( name ParameterName, InterpCurveFloat Value )

SetScalarParameterValue Source code

native function SetScalarParameterValue ( name ParameterName, float Value )

SetTextureParameterValue Source code

native function SetTextureParameterValue ( name ParameterName, Texture Value )

SetVectorParameterValue Source code

native function SetVectorParameterValue ( name ParameterName, LinearColor Value )


Defaultproperties

defaultproperties
{
   Name="Default__MaterialInstance"
   ObjectArchetype=MaterialInterface'Engine.Default__MaterialInterface'
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Creation time: sk 18-3-2018 10:00:39.678 - Created with UnCodeX