# GetSpawnSystemInfo

> Gets state on a spawn system.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.VFX](/engine/6000.0/script-reference/unityengine/vfx.md)
* **Assembly:** UnityEngine.VFXModule

## GetSpawnSystemInfo(int, VFXSpawnerState)

Gets state on a spawn system.

```csharp
public void GetSpawnSystemInfo(int nameID, VFXSpawnerState spawnState)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The system ID. This is the same ID that [Shader.PropertyToID](/engine/6000.0/script-reference/unityengine/shader/propertytoid.md) returns.**** (\[VFXSpawnerState]\(/engine/6000.0/script-reference/unityengine/vfx/vfxspawnerstate)): A modified  [VFXSpawnerState](/engine/6000.0/script-reference/unityengine/vfx/vfxspawnerstate.md) instance.

### Remarks

Use [VFXSpawnerState](/engine/6000.0/script-reference/unityengine/vfx/vfxspawnerstate.md) as parameter to avoid an allocation.

## GetSpawnSystemInfo(int)

Gets state on a spawn system.

```csharp
public VFXSpawnerState GetSpawnSystemInfo(int nameID)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The system ID. This is the same ID that [Shader.PropertyToID](/engine/6000.0/script-reference/unityengine/shader/propertytoid.md) returns.

### Returns

| Type                                                                                  | Description |
| ------------------------------------------------------------------------------------- | ----------- |
| [VFXSpawnerState](/engine/6000.0/script-reference/unityengine/vfx/vfxspawnerstate.md) |             |

### Remarks

Use [VFXSpawnerState](/engine/6000.0/script-reference/unityengine/vfx/vfxspawnerstate.md) as parameter to avoid an allocation.

## GetSpawnSystemInfo(string)

Gets state on a spawn system.

```csharp
public VFXSpawnerState GetSpawnSystemInfo(string name)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)):&#x20;

### Returns

| Type                                                                                  | Description |
| ------------------------------------------------------------------------------------- | ----------- |
| [VFXSpawnerState](/engine/6000.0/script-reference/unityengine/vfx/vfxspawnerstate.md) |             |

### Remarks

Use [VFXSpawnerState](/engine/6000.0/script-reference/unityengine/vfx/vfxspawnerstate.md) as parameter to avoid an allocation.
