Summary
Apply material and color on a GameObject's renderers
- Namespace
- RedGirafeGames
.Agamotto .Scripts .Runtime .Utils - Containing Type
- GameObjectUtils
Syntax
public static void ApplyColorAndMaterial(GameObject gameObject, bool applyOnChildren, Material material, bool applyColor, Color color)
Parameters
Name | Type | Description |
---|---|---|
gameObject | GameObject | The GameObject to modify |
applyOnChildren | bool | Applies on children |
material | Material | The material to apply, null if no material has to be applied |
applyColor | bool | If the color must be applied |
color | Color | The color to apply |
Return Value
Type | Description |
---|---|
void |