Once I get that upgrade to 36-hour days, I will tackle that. – Mychaeel

Difference between revisions of "UE3:MaterialInstanceConstant (UDK)"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
(Talk)
 
(Talk)
Line 1: Line 1:
{{UE3:MaterialInstanceConstant (UT3)}}
+
{{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]]&nbsp;'''ParameterName''', {{cl|Font}}&nbsp;'''FontValue''', [[int]]&nbsp;'''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}}&nbsp;'''NewParent''')}}
 +
 
 +
'''Overrides:''' {{tl|SetParent|MaterialInstance}}
 +
 
 +
<!-- enter function description -->
 +
 
 +
====SetScalarParameterValue====
 +
{{code|native function '''SetScalarParameterValue''' ([[name]]&nbsp;'''ParameterName''', [[float]]&nbsp;'''Value''')}}
 +
 
 +
'''Overrides:''' {{tl|SetScalarParameterValue|MaterialInstance}}
 +
 
 +
<!-- enter function description -->
 +
 
 +
====SetTextureParameterValue====
 +
{{code|native function '''SetTextureParameterValue''' ([[name]]&nbsp;'''ParameterName''', {{cl|Texture}}&nbsp;'''Value''')}}
 +
 
 +
'''Overrides:''' {{tl|SetTextureParameterValue|MaterialInstance}}
 +
 
 +
<!-- enter function description -->
 +
 
 +
====SetVectorParameterValue====
 +
{{code|native function '''SetVectorParameterValue''' ([[name]]&nbsp;'''ParameterName''', const&nbsp;out&nbsp;{{tl|LinearColor|Object|structs}}&nbsp;'''Value''')}}
 +
 
 +
'''Overrides:''' {{tl|SetVectorParameterValue|MaterialInstance}}
 +
 
 +
<!-- enter function description -->

Revision as of 05:24, 17 January 2010

UDK Object >> Surface >> MaterialInterface >> MaterialInstance >> MaterialInstanceConstant
Package: 
Engine
This class in other games:
UT3


Properties

Property group 'MaterialInstanceConstant'

FontParameterValues

Type: array<FontParameterValue>

Modifiers: const


ScalarParameterValues

Type: array<ScalarParameterValue>

Modifiers: const


TextureParameterValues

Type: array<TextureParameterValue>

Modifiers: const


VectorParameterValues

Type: array<VectorParameterValue>

Modifiers: const


Structs

FontParameterValue

Modifiers: native

name ParameterName 
Font FontValue 
int FontPage 
Object.Guid ExpressionGUID 

ScalarParameterValue

Modifiers: native

name ParameterName 
float ParameterValue 
Object.Guid ExpressionGUID 

TextureParameterValue

Modifiers: native

name ParameterName 
Texture ParameterValue 
Object.Guid ExpressionGUID 

VectorParameterValue

Modifiers: native

name ParameterName 
Object.LinearColor ParameterValue 
Object.Guid ExpressionGUID 

Native functions

ClearParameterValues

native function ClearParameterValues ()

Overrides: MaterialInstance.ClearParameterValues

Removes all parameter values

SetFontParameterValue

native function SetFontParameterValue (name ParameterName, Font FontValue, int FontPage)

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

native function SetParent (MaterialInterface NewParent)

Overrides: MaterialInstance.SetParent


SetScalarParameterValue

native function SetScalarParameterValue (name ParameterName, float Value)

Overrides: MaterialInstance.SetScalarParameterValue


SetTextureParameterValue

native function SetTextureParameterValue (name ParameterName, Texture Value)

Overrides: MaterialInstance.SetTextureParameterValue


SetVectorParameterValue

native function SetVectorParameterValue (name ParameterName, const out Object.LinearColor Value)

Overrides: MaterialInstance.SetVectorParameterValue