UE2:MaterialFactory (UT2004): Difference between revisions

From Unreal Wiki, The Unreal Engine Documentation Site
Auto-generated page
 
m filled in descriptions
 
Line 4: Line 4:
| abstract = yes
| abstract = yes
}}
}}
{{autogenerated}}
Subclasses of this class are used by [[UnrealEd 3]] to create new {{cl|Material}}s. An interesting use of a MaterialFactory is the custom class {{cl|UFontMaterial}} that actually imports true-type fonts.
null


==Properties==
==Properties==
Line 11: Line 10:
'''Type:''' [[string]]
'''Type:''' [[string]]


<!-- enter variable description -->
The display name of this factory class in the editor. This name is used in the drop-down list of the "New Material" dialog window.


==Functions==
==Functions==
Line 18: Line 17:
{{code|native function '''ConsoleCommand''' ([[string]]&nbsp;'''Cmd''')}}
{{code|native function '''ConsoleCommand''' ([[string]]&nbsp;'''Cmd''')}}


<!-- enter function description -->
Executes console commands in the context of the editor engine, as if they were entered in the UnrealEd console.


===Events===
===Events===
Line 24: Line 23:
{{code|event {{cl|Material}}&nbsp;'''CreateMaterial''' ({{cl|Object}}&nbsp;'''InOuter''', [[string]]&nbsp;'''InPackage''', [[string]]&nbsp;'''InGroup''', [[string]]&nbsp;'''InName''')}}
{{code|event {{cl|Material}}&nbsp;'''CreateMaterial''' ({{cl|Object}}&nbsp;'''InOuter''', [[string]]&nbsp;'''InPackage''', [[string]]&nbsp;'''InGroup''', [[string]]&nbsp;'''InName''')}}


<!-- enter event description -->
This function is called by UnrealEd to let the factory create a material with the specified parameters.

Latest revision as of 01:24, 28 November 2008

UT2004 Object >> MaterialFactory
Package:
Editor
Direct subclasses:
FractalTextureFactory, RawMaterialFactory
Known custom subclass:
UFontMaterial (UT2004)
This class in other games:

Subclasses of this class are used by UnrealEd 3 to create new Materials. An interesting use of a MaterialFactory is the custom class UFontMaterial that actually imports true-type fonts.

Properties

Description

Type: string

The display name of this factory class in the editor. This name is used in the drop-down list of the "New Material" dialog window.

Functions

Native functions

ConsoleCommand

native function ConsoleCommand (string Cmd)

Executes console commands in the context of the editor engine, as if they were entered in the UnrealEd console.

Events

CreateMaterial

event Material CreateMaterial (Object InOuter, string InPackage, string InGroup, string InName)

This function is called by UnrealEd to let the factory create a material with the specified parameters.