# when creating actor auto-generated scripts have errors inside of them

**URL:** <https://forums.unrealengine.com/t/when-creating-actor-auto-generated-scripts-have-errors-inside-of-them/2385864>\
**Category:** C++\
**Tags:** unreal-engine, CPP, question\
**Created:** [March 12, 2025, 12:03am UTC](https://forums.unrealengine.com/t/when-creating-actor-auto-generated-scripts-have-errors-inside-of-them/2385864 "2025-03-12T00:03:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![OnlyKangaroo32](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OnlyKangaroo32](https://forums.unrealengine.com/u/OnlyKangaroo32)\
**Post date:** [March 12, 2025, 12:03am UTC](https://forums.unrealengine.com/t/when-creating-actor-auto-generated-scripts-have-errors-inside-of-them/2385864/1 "2025-03-12T00:03:44Z")

</div>

When creating a new actor (base C++ actor class) and when opening up the script for the first time, when it should be unmodified from the base one, there are already 4 errors. they include some #uses, and as a new C++ and unreal programmer, this is very unfamiliar to me.

(my actor is named “MyActor”)

Inside of the auto-generated “MyActor.h” file:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/e/3/7e39c8882786dcd37c4059b7f8dd3930c54d90e0.png)

Inside of the auto-generated “MyActor.cpp” file:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/6/0/7600f726e5fce8b5a33a63e817968f801b3bee5e.png)
