duplicate
Creates a new MaterialInstance using another MaterialInstance as a template for initialization. The new MaterialInstance is an instance of the same Material of the template instance and must be destroyed just like any other MaterialInstance.
Return
A new MaterialInstance.
Parameters
other
A MaterialInstance to use as a template for initializing a new instance.
name
A name for the new MaterialInstance or null to use the template's name.