Class MaterialAdapter<Tfront, Tback>
public class MaterialAdapter<Tfront, Tback> : IMaterialAdapter<Tfront, Tback>, IMaterialAdapter where Tfront : Material where Tback : Material, IMaterialAdaptable<Tfront>, new()
Type Parameters
TfrontTback
- Inheritance
-
MaterialAdapter<Tfront, Tback>
- Implements
-
IMaterialAdapter<Tfront, Tback>
- Inherited Members
Properties
BackMaterial
Type of the back material.
public Type BackMaterial { get; }
Property Value
FrontMaterial
Type of the front material.
public Type FrontMaterial { get; }
Property Value
Instance
public static MaterialAdapter<Tfront, Tback> Instance { get; }
Property Value
- MaterialAdapter<Tfront, Tback>
Methods
BackAnnotate(string, Material, Material)
Annotate changes from the back material to the front material.
public void BackAnnotate(string property, Material destination, Material source)
Parameters
propertystringThe name of the modified material property in the back material.
destinationMaterialThe front material to update.
sourceMaterialThe back material that updated.
BackAnnotate(string, Tfront, Tback)
Annotate changes from the back material to the front material.
public void BackAnnotate(string property, Tfront destination, Tback source)
Parameters
propertystringThe name of the modified material property in the back material.
destinationTfrontThe front material to update.
sourceTbackThe back material that updated.
CopyAndConvert(Material)
Copy and convert a front material to a back material.
public Material CopyAndConvert(Material source)
Parameters
sourceMaterialThe front material source.
Returns
- Material
The new back material.
CopyAndConvert(Tfront)
Copy and convert a front material to a back material.
public Tback CopyAndConvert(Tfront source)
Parameters
sourceTfrontThe front material source.
Returns
- Tback
The new back material.
ForwardAnnotate(string, Material, Material)
Annotate changes from the front material to the back material.
public void ForwardAnnotate(string property, Material source, Material destination)
Parameters
propertystringThe name of the modified material property in the front material.
sourceMaterialThe front material that updated.
destinationMaterialThe destination material to update.
ForwardAnnotate(string, Tfront, Tback)
Annotate changes from the front material to the back material.
public void ForwardAnnotate(string property, Tfront source, Tback destination)
Parameters
propertystringThe name of the modified material property in the front material.
sourceTfrontThe front material that updated.
destinationTbackThe destination material to update.