# 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:** 1\
**Showing post:** 3

<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.

---

_[View the full topic](https://forums.unrealengine.com/t/after-creating-post-process-through-c-volume-actor-has-a-collision-component-with-0-radius-please-delete/461145)._
