Method GetRenderers
| Improve this Doc View SourceGetRenderers(GameObject)
Get a list of all MeshRenderer and SkinnedMeshRenderer in this GameObject and its childs.
Declaration
public static List<Renderer> GetRenderers(GameObject gameObject)
Parameters
Type | Name | Description |
---|---|---|
GameObject | gameObject | Parent GameObject |
Returns
Type | Description |
---|---|
List<Renderer> | List of MeshRenderer and SkinnedMeshRenderer |