Version: 2020.3

VisualEffect.GetSpawnSystemInfo

切换到手册
public VFX.VFXSpawnerState GetSpawnSystemInfo (int nameID);
public VFX.VFXSpawnerState GetSpawnSystemInfo (string name);

参数

nameID The system ID. This is the same ID that Shader.PropertyToID returns.
name The name of the spawn system.

返回

VFXSpawnerState A VFXSpawnerState instance.

描述

Gets state on a spawn system.


public void GetSpawnSystemInfo (int nameID, VFX.VFXSpawnerState spawnState);

参数

nameID The system ID. This is the same ID that Shader.PropertyToID returns.
spawnState A modified VFXSpawnerState instance.

描述

Gets state on a spawn system.

Use VFXSpawnerState as parameter to avoid an allocation.