I'm a doctor, not a mechanic
Difference between revisions of "UE3:MaterialInstanceConstant (UDK)"
From Unreal Wiki, The Unreal Engine Documentation Site
(Talk) |
m (1 revision: class descriptions for UDK January update (part 3)) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{infobox class |
+ | | package = Engine | ||
+ | | parent1 = MaterialInstance | ||
+ | | parent2 = MaterialInterface | ||
+ | | parent3 = Surface | ||
+ | | parent4 = Object | ||
+ | }} | ||
+ | {{autogenerated}} | ||
+ | <!-- enter class description --> | ||
+ | |||
+ | ==Properties== | ||
+ | ===Property group 'MaterialInstanceConstant'=== | ||
+ | ====FontParameterValues==== | ||
+ | '''Type:''' [[array]]<{{tl|FontParameterValue}}> | ||
+ | |||
+ | '''[[Variables#Modifiers|Modifiers]]:''' const | ||
+ | |||
+ | <!-- enter variable description --> | ||
+ | |||
+ | ====ScalarParameterValues==== | ||
+ | '''Type:''' [[array]]<{{tl|ScalarParameterValue}}> | ||
+ | |||
+ | '''[[Variables#Modifiers|Modifiers]]:''' const | ||
+ | |||
+ | <!-- enter variable description --> | ||
+ | |||
+ | ====TextureParameterValues==== | ||
+ | '''Type:''' [[array]]<{{tl|TextureParameterValue}}> | ||
+ | |||
+ | '''[[Variables#Modifiers|Modifiers]]:''' const | ||
+ | |||
+ | <!-- enter variable description --> | ||
+ | |||
+ | ====VectorParameterValues==== | ||
+ | '''Type:''' [[array]]<{{tl|VectorParameterValue}}> | ||
+ | |||
+ | '''[[Variables#Modifiers|Modifiers]]:''' const | ||
+ | |||
+ | <!-- enter variable description --> | ||
+ | |||
+ | ==Structs== | ||
+ | ===FontParameterValue=== | ||
+ | '''[[Structs#Modifiers|Modifiers]]:''' native | ||
+ | |||
+ | <!-- enter struct description --> | ||
+ | ; [[name]] ParameterName : <!-- enter variable description --> | ||
+ | ; {{cl|Font}} FontValue : <!-- enter variable description --> | ||
+ | ; [[int]] FontPage : <!-- enter variable description --> | ||
+ | ; {{tl|Guid|Object|structs}} ExpressionGUID : <!-- enter variable description --> | ||
+ | |||
+ | ===ScalarParameterValue=== | ||
+ | '''[[Structs#Modifiers|Modifiers]]:''' native | ||
+ | |||
+ | <!-- enter struct description --> | ||
+ | ; [[name]] ParameterName : <!-- enter variable description --> | ||
+ | ; [[float]] ParameterValue : <!-- enter variable description --> | ||
+ | ; {{tl|Guid|Object|structs}} ExpressionGUID : <!-- enter variable description --> | ||
+ | |||
+ | ===TextureParameterValue=== | ||
+ | '''[[Structs#Modifiers|Modifiers]]:''' native | ||
+ | |||
+ | <!-- enter struct description --> | ||
+ | ; [[name]] ParameterName : <!-- enter variable description --> | ||
+ | ; {{cl|Texture}} ParameterValue : <!-- enter variable description --> | ||
+ | ; {{tl|Guid|Object|structs}} ExpressionGUID : <!-- enter variable description --> | ||
+ | |||
+ | ===VectorParameterValue=== | ||
+ | '''[[Structs#Modifiers|Modifiers]]:''' native | ||
+ | |||
+ | <!-- enter struct description --> | ||
+ | ; [[name]] ParameterName : <!-- enter variable description --> | ||
+ | ; {{tl|LinearColor|Object|structs}} ParameterValue : <!-- enter variable description --> | ||
+ | ; {{tl|Guid|Object|structs}} ExpressionGUID : <!-- enter variable description --> | ||
+ | |||
+ | ==Native functions== | ||
+ | ====ClearParameterValues==== | ||
+ | {{code|native function '''ClearParameterValues''' ()}} | ||
+ | |||
+ | '''Overrides:''' {{tl|ClearParameterValues|MaterialInstance}} | ||
+ | |||
+ | Removes all parameter values | ||
+ | |||
+ | ====SetFontParameterValue==== | ||
+ | {{code|native function '''SetFontParameterValue''' ([[name]] '''ParameterName''', {{cl|Font}} '''FontValue''', [[int]] '''FontPage''')}} | ||
+ | |||
+ | '''Overrides:''' {{tl|SetFontParameterValue|MaterialInstance}} | ||
+ | |||
+ | 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 | ||
+ | |||
+ | ====SetParent==== | ||
+ | {{code|native function '''SetParent''' ({{cl|MaterialInterface}} '''NewParent''')}} | ||
+ | |||
+ | '''Overrides:''' {{tl|SetParent|MaterialInstance}} | ||
+ | |||
+ | <!-- enter function description --> | ||
+ | |||
+ | ====SetScalarParameterValue==== | ||
+ | {{code|native function '''SetScalarParameterValue''' ([[name]] '''ParameterName''', [[float]] '''Value''')}} | ||
+ | |||
+ | '''Overrides:''' {{tl|SetScalarParameterValue|MaterialInstance}} | ||
+ | |||
+ | <!-- enter function description --> | ||
+ | |||
+ | ====SetTextureParameterValue==== | ||
+ | {{code|native function '''SetTextureParameterValue''' ([[name]] '''ParameterName''', {{cl|Texture}} '''Value''')}} | ||
+ | |||
+ | '''Overrides:''' {{tl|SetTextureParameterValue|MaterialInstance}} | ||
+ | |||
+ | <!-- enter function description --> | ||
+ | |||
+ | ====SetVectorParameterValue==== | ||
+ | {{code|native function '''SetVectorParameterValue''' ([[name]] '''ParameterName''', const out {{tl|LinearColor|Object|structs}} '''Value''')}} | ||
+ | |||
+ | '''Overrides:''' {{tl|SetVectorParameterValue|MaterialInstance}} | ||
+ | |||
+ | <!-- enter function description --> |
Latest revision as of 05:41, 17 January 2010
Object >> Surface >> MaterialInterface >> MaterialInstance >> MaterialInstanceConstant |
Contents
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
Properties[edit]
Property group 'MaterialInstanceConstant'[edit]
FontParameterValues[edit]
Type: array<FontParameterValue>
Modifiers: const
ScalarParameterValues[edit]
Type: array<ScalarParameterValue>
Modifiers: const
TextureParameterValues[edit]
Type: array<TextureParameterValue>
Modifiers: const
VectorParameterValues[edit]
Type: array<VectorParameterValue>
Modifiers: const
Structs[edit]
FontParameterValue[edit]
Modifiers: native
- name ParameterName
- Font FontValue
- int FontPage
- Object.Guid ExpressionGUID
ScalarParameterValue[edit]
Modifiers: native
- name ParameterName
- float ParameterValue
- Object.Guid ExpressionGUID
TextureParameterValue[edit]
Modifiers: native
- name ParameterName
- Texture ParameterValue
- Object.Guid ExpressionGUID
VectorParameterValue[edit]
Modifiers: native
- name ParameterName
- Object.LinearColor ParameterValue
- Object.Guid ExpressionGUID
Native functions[edit]
ClearParameterValues[edit]
native function ClearParameterValues ()
Overrides: MaterialInstance.ClearParameterValues
Removes all parameter values
SetFontParameterValue[edit]
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
SetParent[edit]
native function SetParent (MaterialInterface NewParent)
Overrides: MaterialInstance.SetParent
SetScalarParameterValue[edit]
Overrides: MaterialInstance.SetScalarParameterValue
SetTextureParameterValue[edit]
Overrides: MaterialInstance.SetTextureParameterValue
SetVectorParameterValue[edit]
native function SetVectorParameterValue (name ParameterName, const out Object.LinearColor Value)
Overrides: MaterialInstance.SetVectorParameterValue