GetSpawnSystemInfo
Gets state on a spawn system.
阅读时间1 分钟最后更新于 16 天前
Definition
- Type: Method
- Namespace: UnityEngine.VFX
- Assembly: UnityEngine.VFXModule
GetSpawnSystemInfo(int, VFXSpawnerState)
Gets state on a spawn system.
public void GetSpawnSystemInfo(int nameID, VFXSpawnerState spawnState)
Parameters
The system ID. This is the same ID that Shader.PropertyToID returns.
A modified VFXSpawnerState instance.
Remarks
Use VFXSpawnerState as parameter to avoid an allocation.
GetSpawnSystemInfo(int)
Gets state on a spawn system.
public VFXSpawnerState GetSpawnSystemInfo(int nameID)
Parameters
The system ID. This is the same ID that Shader.PropertyToID returns.
Returns
Type | Description |
|---|---|
| VFXSpawnerState | A VFXSpawnerState instance. |
Remarks
Use VFXSpawnerState as parameter to avoid an allocation.
GetSpawnSystemInfo(string)
Gets state on a spawn system.
public VFXSpawnerState GetSpawnSystemInfo(string name)
Parameters
The name of the spawn system.
Returns
Type | Description |
|---|---|
| VFXSpawnerState | A VFXSpawnerState instance. |
Remarks
Use VFXSpawnerState as parameter to avoid an allocation.