# whats the right way to inherit a USTRUCT?

**URL:** <https://forums.unrealengine.com/t/whats-the-right-way-to-inherit-a-ustruct/387043>\
**Category:** Editor Scripting\
**Tags:** inheritance, ustruct, unreal-engine, question, Blueprint, CPP\
**Created:** [March 5, 2017, 10:31pm UTC](https://forums.unrealengine.com/t/whats-the-right-way-to-inherit-a-ustruct/387043 "2017-03-05T22:31:01Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![nande](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nande/32/1057698_2.png) [@nande](https://forums.unrealengine.com/u/nande)\
**Post date:** [January 4, 2025, 7:07am UTC](https://forums.unrealengine.com/t/whats-the-right-way-to-inherit-a-ustruct/387043/6 "2025-01-04T07:07:51Z")

</div>

> [@USTRUCT and inheritance](https://forums.unrealengine.com/t/ustruct-and-inheritance/142421):
>
> Hello, I found out something very strange. A USTRUCT can inherit a struct, only if it is a base struct. For instance the following snippet does not work: #pragma once #include "CoreMinimal.h" #include "FMinimumExample.generated.h" struct TEDIUM\_API FSubClassIntVector : public FIntVector { }; USTRUCT() struct TEDIUM\_API FMinimumExample : public FSubClassIntVector { GENERATED\_BODY() }; This gives compile error : ‘struct’: Can’t find struct ‘FSubClassIntVector’. At the same time, if yo…

it can work on certain conditions. i haven’t found how to do it on bp land though.

---

_[View the full topic](https://forums.unrealengine.com/t/whats-the-right-way-to-inherit-a-ustruct/387043)._
