# After Creating Post Process through C++ - "Volume Actor has a collision component with 0 radius - please delete"

**URL:** <https://forums.unrealengine.com/t/after-creating-post-process-through-c-volume-actor-has-a-collision-component-with-0-radius-please-delete/461145>\
**Category:** Rendering\
**Tags:** build, unreal-engine, Post-Process, brush, question, CPP\
**Created:** [January 31, 2020, 4:11pm UTC](https://forums.unrealengine.com/t/after-creating-post-process-through-c-volume-actor-has-a-collision-component-with-0-radius-please-delete/461145 "2020-01-31T16:11:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![That\_Guy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@That\_Guy](https://forums.unrealengine.com/u/That_Guy)\
**Post date:** [January 31, 2020, 4:11pm UTC](https://forums.unrealengine.com/t/after-creating-post-process-through-c-volume-actor-has-a-collision-component-with-0-radius-please-delete/461145/1 "2020-01-31T16:11:05Z")

</div>

How do I either give the PostProcess a Collision Radius, or disable the collision entirely (Through Code).

The post process is being created in editor, then I am trying to build the level.

The collision does not matter to me as I am making the Volume Unbound.

> PostProcessVolume =  
> GWorld-\>SpawnActor(APostProcessVolume::StaticClass(),  
> FVector::ZeroVector,  
> FRotator::ZeroRotator);

---

<div class="post-metadata">

**Author:** ![MaselinoM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MaselinoM](https://forums.unrealengine.com/u/MaselinoM)\
**Post date:** [December 4, 2023, 12:49pm UTC](https://forums.unrealengine.com/t/after-creating-post-process-through-c-volume-actor-has-a-collision-component-with-0-radius-please-delete/461145/2 "2023-12-04T12:49:55Z")

</div>

I have run into the same error by trying to create a blueprint of a custom class inheriting AVolume, which PostProcessVolume also inherits from.

The post here [c++ - How to create a blueprint that extends the volume(like physic volume) in UE5? - Stack Overflow](https://stackoverflow.com/questions/72858249/how-to-create-a-blueprint-that-extends-the-volumelike-physic-volume-in-ue5) suggests that you cannot just create a new volume, but it needs to be instantiated by its specific factory ([UFactory | Unreal Engine 5.2 Documentation](https://docs.unrealengine.com/5.3/en-US/API/Editor/UnrealEd/Factories/UFactory/)).

In the FPlacementModeModule.cpp of Unreal you can find:

```auto
UActorFactory* PPFactory = GEditor
->FindActorFactoryByClassForActorClass(UActorFactoryBoxVolume::StaticClass(), APostProcessVolume::StaticClass());

```

After that you might be able to instantiate your PostProcessVolume with that factory, I haven’t tried this myself though.

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [December 4, 2023, 2:21pm UTC](https://forums.unrealengine.com/t/after-creating-post-process-through-c-volume-actor-has-a-collision-component-with-0-radius-please-delete/461145/3 "2023-12-04T14:21:07Z")

</div>

Can confirm it works without crashing the editor

```auto
void ACustomVolume::BeginPlay() {
	Super::BeginPlay();

	FActorSpawnParameters p;	
	UActorFactory* PPFactory = GEditor->FindActorFactoryByClassForActorClass(UActorFactoryBoxVolume::StaticClass(), APostProcessVolume::StaticClass());
	PostProcessVolume = (APostProcessVolume*) PPFactory->CreateActor(APostProcessVolume::StaticClass(), GetLevel(), FTransform::Identity, p);		
	PostProcessVolume->SetActorHiddenInGame(false);
}

```

Spawns a post process volume into the editor on play.  
It has a name and transform but the brush component for some reason is not visible in the viewport. Will have to feed it a post process material to see if it changes the scene visually.

Though I did find another post regarding the same subject and the staff replied that stuff like post processing volumes should be made in the editor with the normal tools.

> [@Creating a PostProcessVolume from C++, anyone done that yet?](https://forums.unrealengine.com/t/creating-a-postprocessvolume-from-c-anyone-done-that-yet/5041/2):
>
> Because volumes are defined using a BSP BrushComponent, which is very hard to build from code, this isn’t really something we support. You might be better off applying your postprocess changes to the cameracomponent instead.
