Material.CopyFrom(Material) Method

Definition

Copies material properties from another material.

public:
 void CopyFrom(Microsoft::Azure::RemoteRendering::Material ^ other);
public void CopyFrom (Microsoft.Azure.RemoteRendering.Material other);
member this.CopyFrom : Microsoft.Azure.RemoteRendering.Material -> unit
Public Sub CopyFrom (other As Material)

Parameters

other
Material

The material from which to copy properties.

Remarks

If the material types don't match, only common properties such as albedo color and texture are copied.

A InvalidParam error occurs if 'other' is an invalid material.

Applies to