# TSubclassOf is missing every time I open a level

**URL:** <https://forums.unrealengine.com/t/tsubclassof-is-missing-every-time-i-open-a-level/1632034>\
**Category:** C++\
**Tags:** Script, unreal-engine, bug-report, CPP\
**Created:** [January 21, 2024, 5:04pm UTC](https://forums.unrealengine.com/t/tsubclassof-is-missing-every-time-i-open-a-level/1632034 "2024-01-21T17:04:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vicen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vicen](https://forums.unrealengine.com/u/Vicen)\
**Post date:** [January 21, 2024, 5:04pm UTC](https://forums.unrealengine.com/t/tsubclassof-is-missing-every-time-i-open-a-level/1632034/1 "2024-01-21T17:04:19Z")

</div>

I am trying to save the value I assign to this attribute permanently.  
Whenever I open the level it gets none.

UnrealEditor: ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/f/c/2fccf4a5cdca0f5f402c38ddc0f66703db22d6fe.png)

This is the class I want to assign to it and this is the attribute I have:

```auto
UCLASS()
class ***_API UOther : public UActorComponent, public IUE_Interface //IUE_Interface is an unreal interface.

```

```auto
class ***_API AMyActor final : public AActor.
{
...
        UPROPERTY(EditAnywhere, Category = "Attributes")
	TSubclassOf < UOther > Other;
...
}

```

This is the essential, then I have classes that inherit from uOther and these are the ones I want to be stored in the Other attribute.

---

<div class="post-metadata">

**Author:** ![Vicen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vicen](https://forums.unrealengine.com/u/Vicen)\
**Post date:** [January 22, 2024, 4:08pm UTC](https://forums.unrealengine.com/t/tsubclassof-is-missing-every-time-i-open-a-level/1632034/2 "2024-01-22T16:08:01Z")

</div>

It seems that using another name with exactly the same content that had the UOther class solves the problem, quite rare (the name of the UOther class is invented, it was to avoid the use of Foo).
