# Can't edit CollisionBox created via C++ in Blueprint Viewport

**URL:** <https://forums.unrealengine.com/t/cant-edit-collisionbox-created-via-c-in-blueprint-viewport/724625>\
**Category:** C++\
**Tags:** unreal-engine, Blueprint, CPP, question\
**Created:** [December 9, 2022, 8:48am UTC](https://forums.unrealengine.com/t/cant-edit-collisionbox-created-via-c-in-blueprint-viewport/724625 "2022-12-09T08:48:21Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Sartox1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sartox1/32/630006_2.png) [@Sartox1](https://forums.unrealengine.com/u/Sartox1)\
**Post date:** [March 8, 2023, 11:57am UTC](https://forums.unrealengine.com/t/cant-edit-collisionbox-created-via-c-in-blueprint-viewport/724625/3 "2023-03-08T11:57:53Z")

</div>

If anyone stumbles upon this thread and the proposed solution from rbey does not work, take a look at this thread too

> [@\[Solved\]Blank detail panel for UStaticMeshComopnent in child blueprint class of a C++ class](https://forums.unrealengine.com/t/solved-blank-detail-panel-for-ustaticmeshcomopnent-in-child-blueprint-class-of-a-c-class/141378):
>
> This issue has be solved by re-create related blueprints. [HR][/HR] Hey guys, I’ve met a issue that I can’t solve it out. That thing is, I created a custom class inherited from ACharacter, and inserted the following code in order to add a simple static mesh component to it: .h UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Mesh, meta = (AllowPrivateAccess = "true")) class UStaticMeshComponent\* SMWeapon; .cpp SMWeapon = CreateDefaultSubobject\<UStaticMeshComponent\>(TEXT("SM…

---

_[View the full topic](https://forums.unrealengine.com/t/cant-edit-collisionbox-created-via-c-in-blueprint-viewport/724625)._
