# Active Meshes

## Overview

This component toggle gameobjects on and off on a list. Useful to switch props on a character.

![](https://963537199-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lzhr1XSMzMqNXjRnNlb%2F-MZFuI7LLBEoVohNt6UA%2F-MZFuJ57uf5ZvtyQs75n%2Fimage.png?alt=media\&token=85f3e01d-a9df-4192-83ef-54deec054a6a)

{% hint style="info" %}
When you click the Change Mesh Button it will cycle between all the **Meshes** on the Active Mesh. **This only work on the Editor.** For Game purposes use **Public methods.**
{% endhint %}

![](https://963537199-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lzhr1XSMzMqNXjRnNlb%2F-MZFuI7LLBEoVohNt6UA%2F-MZFvKEkxYw5xh8DqEUd%2FAaSXCCfXQp.gif?alt=media\&token=1c97943b-7fc7-4c22-b24c-f48765939cc9)

It uses a List of **\<Active Meshes>** to switch through them &#x20;

You can create any new **Active Mesh** by clicking on the Plus(**+**) button of the list.

![](https://963537199-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lzhr1XSMzMqNXjRnNlb%2F-MZFw8KDDD5cMseGXS5S%2F-MZFwiqMNJm-TV6k4YGY%2FgqoLAy1U3J.gif?alt=media\&token=dcf441b4-9090-44a5-b079-173316ad6014)

## Parameters

### Show/Hide Properties <img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lzhr1XSMzMqNXjRnNlb%2F-MZFw8KDDD5cMseGXS5S%2F-MZFx6JprW32mB1sfDAO%2Fimage.png?alt=media&#x26;token=7f3ba6e8-4a76-4025-a3b2-b88d4d5dd5a3" alt="" data-size="original">&#x20;

Shows/Hide the selected **Active Mesh** properties.

![](https://963537199-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lzhr1XSMzMqNXjRnNlb%2F-MZFxHIr--zKUhRfI0sC%2F-MZFxaeqbDJWh6u6zzrY%2Fe0Io3bQdzs.gif?alt=media\&token=b40d2460-5377-417e-86ce-268f2c042331)

When you select an **Active Mesh** on the list you will have the (Index), the Name, and Button with the Current Active mesh

### Random \[R]

It will set a random Mesh on Start on every **Active Mesh**. Useful to create random variations.

## Active Mesh

The Active Mesh is a struct class that holds all the Parameters and properties needed to hide/toggle the transforms inside a character.

![](https://963537199-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lzhr1XSMzMqNXjRnNlb%2F-MZFy4fqI8NumGSL9mMf%2F-MZFz14Z50kVVNiPnQF4%2Fimage.png?alt=media\&token=21e64a55-0cd1-4adb-9738-5092bc3f90fb)

{% hint style="info" %}
Set an empty gameobject on the list in case you want to have no transforms shown.
{% endhint %}

## Methods and Properties

### `void Randomize()`

> Randomize all the Active Meshes on the list

### `void SetActiveMeshesIndex(int[] MeshesIndex)`

> Set All the  ActiveMeshes Indexes from the Meshes list.&#x20;

### `void ChangeMesh(int index)`

> Select an element from the list by the index, and change to the next variation.&#x20;

### `void ChangeMesh(int index, int MeshIndex)`

> Select an element from the list by the index, and change to a variation using the variation Index.&#x20;

### `void ChangeMesh(string name, bool next)`

> Randomize all the&#x20;
>
> > Select an element from the list by the name, and change next or before Mesh (.

### `andomize()`

> Randomize all the Active Meshes on th
