GameObjectUtils.

ApplyMaterialOnRenderer(Renderer, Material) Method

Summary

Apply material to all materials of a Renderer

Syntax

public static void ApplyMaterialOnRenderer(Renderer rend, Material material)

Parameters

Name Type Description
rend Renderer The Renderer modified
material Material The material to apply

Return Value

Type Description
void