copyWith method
UArMaterial
copyWith(
{ - Color? color,
- double? metallic,
- double? roughness,
- double? opacity,
- Color? emissive,
- UArSource? texture,
- bool? unlit,
- bool? doubleSided,
- bool? occluder,
- bool? renderOnTop,
})
Implementation
UArMaterial copyWith({Color? color, double? metallic, double? roughness, double? opacity, Color? emissive, UArSource? texture, bool? unlit, bool? doubleSided, bool? occluder, bool? renderOnTop}) =>
UArMaterial(
color: color ?? this.color,
metallic: metallic ?? this.metallic,
roughness: roughness ?? this.roughness,
opacity: opacity ?? this.opacity,
emissive: emissive ?? this.emissive,
texture: texture ?? this.texture,
unlit: unlit ?? this.unlit,
doubleSided: doubleSided ?? this.doubleSided,
occluder: occluder ?? this.occluder,
renderOnTop: renderOnTop ?? this.renderOnTop,
);