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

Engine.MaterialInstanceTimeVarying

Extends
MaterialInstance
Modifiers
native ( Material )

When adding new functionality to this you will sadly need to touch a number of places: MaterialInstanceTimeVarying.uc for the actual data that will be used in the game MaterialEditorInstanceTimeVarying.uc for the editor property dialog that will be used to edit the data you just added void UMaterialEditorInstanceTimeVarying::CopyToSourceInstance() template< typename MI_TYPE, typename ARRAY_TYPE > (this copies void UpdateParameterValueOverTimeValues( void UMaterialEditorInstanceTimeVarying::RegenerateArrays() the various void UMaterialInstanceTimeVarying::Set (to set the defaul values) static void UpdateMICResources(UMaterialInstanceTimeVarying* Instance) (to send the data over to the rendering thread (if it needs it) Copyright 1998-2008 Epic Games, Inc. All Rights Reserved.

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

Variables Summary
MaterialInstanceTimeVarying
boolbAutoActivateAll
array<FontParameterValueOverTime>FontParameterValues
array<ScalarParameterValueOverTime>ScalarParameterValues
array<TextureParameterValueOverTime>TextureParameterValues
array<VectorParameterValueOverTime>VectorParameterValues
Inherited Variables from Engine.MaterialInstance
bHasStaticPermutationResource, bStaticPermutationDirty, Parent, PhysMaterial, ReentrantFlag, ReferencedTextures, Resources[2], StaticParameters[2], StaticPermutationResources[2]
Inherited Variables from Engine.MaterialInterface
PreviewMesh

Structures Summary
FontParameterValueOverTime
FontValue, FontPage
ParameterValueOverTime
ExpressionGUID, StartTime, ParameterName, bLoop, bAutoActivate, CycleTime, bNormalizeTime
ScalarParameterValueOverTime
ParameterValue, ParameterValueCurve
TextureParameterValueOverTime
ParameterValue
VectorParameterValueOverTime
ParameterValue, ParameterValueCurve

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 SetScalarStartTime (name ParameterName, float Value)
function SetTextureParameterValue (name ParameterName, Texture Value)
function SetVectorCurveParameterValue (name ParameterName, InterpCurveVector Value)
function SetVectorParameterValue (name ParameterName, LinearColor Value)
function SetVectorStartTime (name ParameterName, float Value)
Inherited Functions from Engine.MaterialInstance
ClearParameterValues, SetFontParameterValue, SetParent, SetScalarCurveParameterValue, SetScalarParameterValue, SetTextureParameterValue, SetVectorParameterValue
Inherited Functions from Engine.MaterialInterface
GetFontParameterValue, GetMaterial, GetPhysicalMaterial, GetScalarCurveParameterValue, GetScalarParameterValue, GetTextureParameterValue, GetVectorCurveParameterValue, GetVectorParameterValue


Variables Detail

MaterialInstanceTimeVarying

bAutoActivateAll Source code

var(MaterialInstanceTimeVarying) bool bAutoActivateAll;
causes all parameters to start playing immediately

FontParameterValues Source code

var(MaterialInstanceTimeVarying) const array<FontParameterValueOverTime> FontParameterValues;

ScalarParameterValues Source code

var(MaterialInstanceTimeVarying) const array<ScalarParameterValueOverTime> ScalarParameterValues;

TextureParameterValues Source code

var(MaterialInstanceTimeVarying) const array<TextureParameterValueOverTime> TextureParameterValues;

VectorParameterValues Source code

var(MaterialInstanceTimeVarying) const array<VectorParameterValueOverTime> VectorParameterValues;


Structures Detail

FontParameterValueOverTime Source code

struct FontParameterValueOverTime extends ParameterValueOverTime
{
var(MaterialInstanceTimeVarying) int FontPage;
var(MaterialInstanceTimeVarying) Font FontValue;
};


ParameterValueOverTime Source code

struct ParameterValueOverTime
{
var(MaterialInstanceTimeVarying) bool bAutoActivate;
var(MaterialInstanceTimeVarying) bool bLoop;
var(MaterialInstanceTimeVarying) bool bNormalizeTime;
var(MaterialInstanceTimeVarying) float CycleTime;
var guid ExpressionGUID;
var(MaterialInstanceTimeVarying) name ParameterName;
var float StartTime;
};

bAutoActivate:
This will auto activate this param
bLoop:
if true, then the CycleTime is the loop time and time loops
bNormalizeTime:
if true, then the CycleTime is used to scale time so all keys are between zero and one
CycleTime:
this controls time normalization and the loop time
StartTime:
when this is parameter is to start "ticking" then this value will be set to the current game time

ScalarParameterValueOverTime Source code

struct ScalarParameterValueOverTime extends ParameterValueOverTime
{
var(MaterialInstanceTimeVarying) float ParameterValue;
var(MaterialInstanceTimeVarying) InterpCurveFloat ParameterValueCurve;
};

ParameterValue:
This allows MITVs to have both single scalar and curve values
ParameterValueCurve:
This will automatically be used if there are any values in this Curve

TextureParameterValueOverTime Source code

struct TextureParameterValueOverTime extends ParameterValueOverTime
{
var(MaterialInstanceTimeVarying) Texture ParameterValue;
};


VectorParameterValueOverTime Source code

struct VectorParameterValueOverTime extends ParameterValueOverTime
{
var(MaterialInstanceTimeVarying) LinearColor ParameterValue;
var(MaterialInstanceTimeVarying) InterpCurveVector ParameterValueCurve;
};

ParameterValueCurve:
This will automatically be used if there are any values in this Curve


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 )
For MITVs you can utilize both single Scalar values and InterpCurve values. If there is any data in the InterpCurve, then the MITV will utilize that. Else it will utilize the Scalar value of the same name.

SetScalarStartTime Source code

native function SetScalarStartTime ( name ParameterName, float Value )
This sets how long after the MITV has been spawned to start "ticking" the named Scalar InterpCurve

SetTextureParameterValue Source code

native function SetTextureParameterValue ( name ParameterName, Texture Value )

SetVectorCurveParameterValue Source code

native function SetVectorCurveParameterValue ( name ParameterName, InterpCurveVector Value )

SetVectorParameterValue Source code

native function SetVectorParameterValue ( name ParameterName, LinearColor Value )

SetVectorStartTime Source code

native function SetVectorStartTime ( name ParameterName, float Value )
This sets how long after the MITV has been spawned to start "ticking" the named Scalar InterpCurve


Defaultproperties

defaultproperties
{
   Name="Default__MaterialInstanceTimeVarying"
   ObjectArchetype=MaterialInstance'Engine.Default__MaterialInstance'
}

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