# Please support the namespace for UClass

**URL:** <https://forums.unrealengine.com/t/please-support-the-namespace-for-uclass/531393>\
**Category:** Feedback & Requests\
**Tags:** package, source-code, unreal-engine, UE5-0\
**Created:** [April 17, 2022, 12:47pm UTC](https://forums.unrealengine.com/t/please-support-the-namespace-for-uclass/531393 "2022-04-17T12:47:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Movement](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Movement](https://forums.unrealengine.com/u/Movement)\
**Post date:** [April 17, 2022, 12:47pm UTC](https://forums.unrealengine.com/t/please-support-the-namespace-for-uclass/531393/1 "2022-04-17T12:47:20Z")

</div>

Currently I’m creating a plugin in Unreal Engine

I would like to use a namespace to avoid name collisions in class names.  
I found out that UClass doesn’t support namespaces.

Currently, we avoid name collisions by giving the class a unique name, but there is no complete workaround if there is a change on the Engine side in this way.

In fact, UE4.27 successfully created a Plugin Package.

However, in UE5.0, an error occurred in the Plugin Package.

The error message also says that the class name is duplicated.

When I checked the engine code, I could see the class name with the same name as the class I created.

No error occurs when creating a class, it does occur during Package.

From the above, would you please support namespaces to avoid name collisions?

If that isn’t possible, is there a better way?

Thanking you in advance.

---

<div class="post-metadata">

**Author:** ![RemRemRemRe](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/remremremre/32/974428_2.png) [@RemRemRemRe](https://forums.unrealengine.com/u/RemRemRemRe)\
**Post date:** [September 10, 2022, 3:19am UTC](https://forums.unrealengine.com/t/please-support-the-namespace-for-uclass/531393/2 "2022-09-10T03:19:16Z")

</div>

I am also wondering why namespace for UCLASS, USTRUCT is not supported until now?

---

<div class="post-metadata">

**Author:** ![Movement](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Movement](https://forums.unrealengine.com/u/Movement)\
**Post date:** [October 11, 2022, 1:53pm UTC](https://forums.unrealengine.com/t/please-support-the-namespace-for-uclass/531393/4 "2022-10-11T13:53:09Z")

</div>

I do not understand.  
Why doesn’t Epic support something as basic as this…  
Anyway, the workaround you can do on the C++ side is  
・use unusual class names  
・Add your own preflex to the class name  
I can’t think of anything other than this.

In any case, be careful with class names when writing plugins.

---

<div class="post-metadata">

**Author:** ![David\_Morasz](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/david_morasz/32/247970_2.png) [@David\_Morasz](https://forums.unrealengine.com/u/David_Morasz)\
**Post date:** [July 27, 2025, 4:13pm UTC](https://forums.unrealengine.com/t/please-support-the-namespace-for-uclass/531393/5 "2025-07-27T16:13:19Z")

</div>

yet blueprints now have namespaces? [Blueprint Namespaces in Unreal Engine | Unreal Engine 5.6 Documentation | Epic Developer Community](https://dev.epicgames.com/documentation/en-us/unreal-engine/blueprint-namespaces-in-unreal-engine) I’m confused

---

<div class="post-metadata">

**Author:** ![Movement](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Movement](https://forums.unrealengine.com/u/Movement)\
**Post date:** [September 1, 2025, 11:31am UTC](https://forums.unrealengine.com/t/please-support-the-namespace-for-uclass/531393/6 "2025-09-01T11:31:29Z")

</div>

I think that’s probably true.
