Always snap to grid
UE3:MaterialInstanceTimeVarying (UT3)
From Unreal Wiki, The Unreal Engine Documentation Site
| Object >> Surface >> MaterialInterface >> MaterialInstance >> MaterialInstanceTimeVarying |
Contents |
| This is an auto-generated page and may need human attention. Please remove this tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
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-2007 Epic Games, Inc. All Rights Reserved.
[edit] Properties
[edit] Property group 'MaterialInstanceTimeVarying'
[edit] bAutoActivateAll
Type: bool
causes all parameters to start playing immediately *
[edit] FontParameterValues
Type: array<FontParameterValueOverTime>
Modifiers: const
[edit] ScalarParameterValues
Type: array<ScalarParameterValueOverTime>
Modifiers: const
[edit] TextureParameterValues
Type: array<TextureParameterValueOverTime>
Modifiers: const
[edit] VectorParameterValues
Type: array<VectorParameterValueOverTime>
Modifiers: const
[edit] Structs
[edit] FontParameterValueOverTime
Extends: ParameterValueOverTime
Modifiers: native
[edit] ParameterValueOverTime
Modifiers: native
- Object.Guid ExpressionGUID
- float StartTime
- when this is parameter is to start "ticking" then this value will be set to the current game time *
- name ParameterName
- bool bLoop
- if true, then the CycleTime is the loop time and time loops *
- bool bAutoActivate
- This will auto activate this param *
- float CycleTime
- this controls time normalization and the loop time *
- bool bNormalizeTime
- if true, then the CycleTime is used to scale time so all keys are between zero and one *
Default values:
| Property | Value |
|---|---|
| bAutoActivate | False |
| bLoop | False |
| bNormalizeTime | False |
| CycleTime | 1.0 |
[edit] ScalarParameterValueOverTime
Extends: ParameterValueOverTime
Modifiers: native
- float ParameterValue
- This allows MITVs to have both single scalar and curve values *
- Object.InterpCurveFloat ParameterValueCurve
- This will automatically be used if there are any values in this Curve *
[edit] TextureParameterValueOverTime
Extends: ParameterValueOverTime
Modifiers: native
- Texture ParameterValue
[edit] VectorParameterValueOverTime
Extends: ParameterValueOverTime
Modifiers: native
- Object.LinearColor ParameterValue
- Object.InterpCurveVector ParameterValueCurve
- This will automatically be used if there are any values in this Curve *
[edit] Native functions
[edit] ClearParameterValues
Overrides: MaterialInstance.ClearParameterValues
Removes all parameter values
[edit] SetFontParameterValue
Overrides: MaterialInstance.SetFontParameterValue
Sets the value of the given font parameter.
Parameters:
- ParameterName - The name of the font parameter
- OutFontValue - New font value to set for this MIC
- OutFontPage - New font page value to set for this MIC
[edit] SetParent
Overrides: MaterialInstance.SetParent
[edit] SetScalarCurveParameterValue
Overrides: MaterialInstance.SetScalarCurveParameterValue
[edit] SetScalarParameterValue
Overrides: MaterialInstance.SetScalarParameterValue
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.
[edit] SetScalarStartTime
This sets how long after the MITV has been spawned to start "ticking" the named Scalar InterpCurve *
[edit] SetTextureParameterValue
Overrides: MaterialInstance.SetTextureParameterValue
[edit] SetVectorCurveParameterValue
[edit] SetVectorParameterValue
Overrides: MaterialInstance.SetVectorParameterValue
[edit] SetVectorStartTime
This sets how long after the MITV has been spawned to start "ticking" the named Scalar InterpCurve *
