Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
SoftMasking.GlobalMaterialReplacerAttribute Class Reference

Mark an implementation of the IMaterialReplacer interface with this attribute to register it in the global material replacer chain. The global replacers will be used automatically by all SoftMasks. More...

Inheritance diagram for SoftMasking.GlobalMaterialReplacerAttribute:

Detailed Description

Mark an implementation of the IMaterialReplacer interface with this attribute to register it in the global material replacer chain. The global replacers will be used automatically by all SoftMasks.

Globally registered replacers are called in order of ascending of their order value. The traversal is stopped on the first IMaterialReplacer which returns a non-null value and this returned value is then used as a replacement.

Implementation of IMaterialReplacer marked by this attribute should have a default constructor.

See also
IMaterialReplacer, MaterialReplacer.globalReplacers

The documentation for this class was generated from the following file: