# Cannot overwrite variables from parent class

**URL:** <https://forums.unrealengine.com/t/cannot-overwrite-variables-from-parent-class/445544>\
**Category:** Blueprint\
**Tags:** hierarchy, parent-class, unreal-engine, Blueprint, question\
**Created:** [March 18, 2019, 10:08pm UTC](https://forums.unrealengine.com/t/cannot-overwrite-variables-from-parent-class/445544 "2019-03-18T22:08:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Skycert](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skycert](https://forums.unrealengine.com/u/Skycert)\
**Post date:** [March 18, 2019, 10:08pm UTC](https://forums.unrealengine.com/t/cannot-overwrite-variables-from-parent-class/445544/1 "2019-03-18T22:08:32Z")

</div>

So, the objective here is to make a weapons system. I start with the parent class: an abstract weapon blueprint which defines what things are going to have all weapons (model, collision, animation, maxAmmo…).  
Then right-click on the **abstractWeaponBP \> Create new child class. I name it “shotgun”**. Then I edit things from that class using the editor (I set the model to one of a shotgun, I adjust the collision box to the model…) but time is up and I have to go, so I save everything and close the engine.

The next day, when I come back **I cannot edit a single thing inside “shotgun”** , the tag “isDataOnly” is now true and opening the blueprint shows an empty window Why? and how do I get things done now? Because **I need to be able to edit the position of the model, size of the collision box** … and I cannot do that using setters with the precision I have using 3D gizmos.

---

<div class="post-metadata">

**Author:** ![Ego\_Studio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ego\_Studio](https://forums.unrealengine.com/u/Ego_Studio)\
**Post date:** [March 19, 2019, 10:30am UTC](https://forums.unrealengine.com/t/cannot-overwrite-variables-from-parent-class/445544/2 "2019-03-19T10:30:38Z")

</div>

There is a blue hypertext “Open Full Blueprint Editor”

---

<div class="post-metadata">

**Author:** ![Skycert](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skycert](https://forums.unrealengine.com/u/Skycert)\
**Post date:** [March 19, 2019, 8:00pm UTC](https://forums.unrealengine.com/t/cannot-overwrite-variables-from-parent-class/445544/3 "2019-03-19T20:00:58Z")

</div>

Yep, in the ClassDefaults window, there’s a hypertext that allows doing what I needed. Thanks a lot!
