/// <summary>Creates a new Material asset with the same shader and properties! Draw calls with /// the new Material will not batch togethre with the source Material.</summary> /// /// <param name="materialId">Which Material are you looking for?</param> /// <returns>A new Material asset with the same shader and properties. Returns null if no /// materials are found with the given id.</returns> public static Material Copy(string materialId) { IntPtr inst = NativeAPI.material_copy_id(materialId); return(inst == IntPtr.Zero ? null : new Material(inst)); }