Method DestroyVolume
DestroyVolume(PostProcessVolume, bool, bool)
Properly destroys a volume.
Declaration
public static void DestroyVolume(PostProcessVolume volume, bool destroyProfile, bool destroyGameObject = false)
Parameters
Type | Name | Description |
---|---|---|
PostProcessVolume | volume | The volume to destroy |
bool | destroyProfile | Should we destroy the attached profile? |
bool | destroyGameObject | Should we destroy the volume Game Object? |