# UVerticalBox::ReleaseSlateResources is incorrectly declared as protected instead of public

**URL:** <https://forums.unrealengine.com/t/uverticalbox-releaseslateresources-is-incorrectly-declared-as-protected-instead-of-public/2735805>\
**Category:** Issues and Bug Reporting (Unreal Engine)\
**Tags:** unreal-engine\
**Created:** [July 15, 2026, 5:48am UTC](https://forums.unrealengine.com/t/uverticalbox-releaseslateresources-is-incorrectly-declared-as-protected-instead-of-public/2735805 "2026-07-15T05:48:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![YUBlZ](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/yublz/32/710746_2.png) [@YUBlZ](https://forums.unrealengine.com/u/YUBlZ)\
**Post date:** [July 15, 2026, 5:48am UTC](https://forums.unrealengine.com/t/uverticalbox-releaseslateresources-is-incorrectly-declared-as-protected-instead-of-public/2735805/1 "2026-07-15T05:48:58Z")

</div>

### Summary

UVerticalBox::ReleaseSlateResources is incorrectly declared under the protected access specifier instead of public, breaking API consistency and causing compilation failures when called directly on the concrete type.

### What Type of Bug are you experiencing?

Framework

### Steps to Reproduce

Create a C++ class or module that includes “Components/VerticalBox.h”.

Instantiate or reference a pointer of the concrete type: UVerticalBox\* MyVerticalBox;

Attempt to call the release function directly on the pointer: MyVerticalBox-\>ReleaseSlateResources(true);

Compile the project.

### Expected Result

The compilation should succeed because ReleaseSlateResources is a public virtual function in the base class UWidget, and it is exposed as public in all other derived standard layout components (e.g., UHorizontalBox, UCanvasPanel, UBorder).

### Observed Result

The compilation fails with a C++ compiler error stating that the member is inaccessible (e.g., cannot access protected member declared in class ‘UVerticalBox’).

### Affects Versions

5.8

### Platform(s)

Windows

### Additional Notes

In VerticalBox.h, move virtual void ReleaseSlateResources(bool bReleaseChildren) override; out of the protected: section and place it into the public: section.

---

<div class="post-metadata">

**Author:** ![davidwarner24354](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@davidwarner24354](https://forums.unrealengine.com/u/davidwarner24354)\
**Post date:** [July 15, 2026, 9:24am UTC](https://forums.unrealengine.com/t/uverticalbox-releaseslateresources-is-incorrectly-declared-as-protected-instead-of-public/2735805/2 "2026-07-15T09:24:40Z")

</div>

This looks like an API consistency issue in the framework rather than an intended access restriction. Since `UWidget::ReleaseSlateResources` is public and other derived widgets expose it publicly, `UVerticalBox` having it under `protected` creates an unexpected breaking change for C++ users. Moving the override into the public section in `VerticalBox.h` should align it with the rest of the widget hierarchy and restore expected behavior.
