| Home Page | Recent Changes | Preferences

MaterialFactory

UT2003 :: Object >> MaterialFactory (Package: Editor)

Abstract base class for material factories. Subclasses of this class are used in UnrealEd 3 to create non-Texture Materials. Non-abstract subclasses of this class are displayed in the Class drop-down list of UnrealEd's New Material dialog window (Texture Browser Menu File → New...)

Properties

string Description
A description of the type of material created by this material factory. This description

Methods

ConsoleCommand(string Cmd) [native]
Similar to the ConsoleCommand() functions in the Actor and Interaction classes, but doesn't return anything.
Material CreateMaterial(Object InOuter, string InPackage, string InGroup, string InName)
Called by the editor engine when the user presses the New button in the New Material dialog window. This function should be overridden to somehow create a new Material object in the package InPackage, group InGroup, with the name InName according to the parameters in the selected subclass. See RawMaterialFactory and FractalTextureFactory for two examples, how this may work. InOuter is a reference to the package or group (actually a package contained in another package) object the new material should be created in. UnrealEd automatically opens the properties window for the material returned by this function.

Known Subclasses


Category Class (UT2003)
Category Class (UT2004)

The Unreal Engine Documentation Site

Wiki Community

Topic Categories

Image Uploads

Random Page

Recent Changes

Offline Wiki

Unreal Engine

Console Commands

Terminology

FAQs

Help Desk

Mapping Topics

Mapping Lessons

UnrealEd Interface

UnrealScript Topics

UnrealScript Lessons

Making Mods

Class Tree

Modeling Topics

Chongqing Page

Log In