# Tips needed for architecture using data classes

**URL:** <https://forums.unrealengine.com/t/tips-needed-for-architecture-using-data-classes/716484>\
**Category:** Architectural and Design Visualization\
**Tags:** data, inheritance, Class, unreal-engine, architecture, delegates, CPP\
**Created:** [November 27, 2022, 8:38pm UTC](https://forums.unrealengine.com/t/tips-needed-for-architecture-using-data-classes/716484 "2022-11-27T20:38:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KingCocal](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kingcocal/32/487659_2.png) [@KingCocal](https://forums.unrealengine.com/u/KingCocal)\
**Post date:** [November 27, 2022, 8:38pm UTC](https://forums.unrealengine.com/t/tips-needed-for-architecture-using-data-classes/716484/1 "2022-11-27T20:38:40Z")

</div>

Hi guys,

I’m currently developing an editor with tools like translation, rotation, scale, etc inside of UE5.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/e/c/8ec472aa9b0daa6c44a96a514d7eb7260c5fc2ad.png)

I’m trying to come out with a good architecture separating data classes (that can be serialized) and actor classes to show in game the object related to this data.

But here is the problem, i dont really know how to manage the inheritance structure on the “actor part”. Should i cast the Data parameter in specialized actor classes to be match the SpecializedData classes ? Always casting is not ideal… Maybe i should declare the SpecializedData class directly into the SpecializedActor ?  
I’m also wondering about the WriteData() function inheritance.  
I’m a beginner in architecture in UE and i’m open to your advices on best practices ! 🙂

Thanks,  
Corentin

---

<div class="post-metadata">

**Author:** ![S-Dot](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/s-dot/32/1194599_2.png) [@S-Dot](https://forums.unrealengine.com/u/S-Dot)\
**Post date:** [November 29, 2022, 5:41am UTC](https://forums.unrealengine.com/t/tips-needed-for-architecture-using-data-classes/716484/2 "2022-11-29T05:41:50Z")

</div>

You might be in the wrong forum section. This here is about building architectural visualization and not code architecture.
