Class MaterialAdapter<Tfront, Tback>
public class MaterialAdapter<Tfront, Tback> : IMaterialAdapter<Tfront, Tback>, IMaterialAdapter where Tfront : Material where Tback : Material, IMaterialAdaptable<Tfront>, new()
Type Parameters
Tfront
Tback
- 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
property
stringThe name of the modified material property in the back material.
destination
MaterialThe front material to update.
source
MaterialThe 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
property
stringThe name of the modified material property in the back material.
destination
TfrontThe front material to update.
source
TbackThe back material that updated.
CopyAndConvert(Material)
Copy and convert a front material to a back material.
public Material CopyAndConvert(Material source)
Parameters
source
MaterialThe 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
source
TfrontThe 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
property
stringThe name of the modified material property in the front material.
source
MaterialThe front material that updated.
destination
MaterialThe 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
property
stringThe name of the modified material property in the front material.
source
TfrontThe front material that updated.
destination
TbackThe destination material to update.