Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Properties | List of all members
SoftMasking.IMaterialReplacer Interface Reference

Used by SoftMask to automatically replace materials which don't support Soft Mask by those that do. More...

Inheritance diagram for SoftMasking.IMaterialReplacer:
SoftMasking.MaterialReplacerChain SoftMasking.TextMeshPro.MaterialReplacer

Public Member Functions

Material Replace (Material material)
 Should return null if this replacer can't replace the given material. More...
 

Properties

int order [get]
 Determines the mutual order in which IMaterialReplacers will be called. The lesser the return value, the earlier it will be called, that is, replacers are sorted by ascending of the order value. The order of default implementation is 0. If you want your function to be called before, return a value lesser than 0. More...
 

Detailed Description

Used by SoftMask to automatically replace materials which don't support Soft Mask by those that do.

See also
GlobalMaterialReplacerAttribute

Member Function Documentation

Material SoftMasking.IMaterialReplacer.Replace ( Material  material)

Should return null if this replacer can't replace the given material.

Implemented in SoftMasking.MaterialReplacerChain, and SoftMasking.TextMeshPro.MaterialReplacer.

Property Documentation

int SoftMasking.IMaterialReplacer.order
get

Determines the mutual order in which IMaterialReplacers will be called. The lesser the return value, the earlier it will be called, that is, replacers are sorted by ascending of the order value. The order of default implementation is 0. If you want your function to be called before, return a value lesser than 0.


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