# \#UClass

**URL:** https://forums.unrealengine.com/tag/uclass/4827.md

[Latest](https://forums.unrealengine.com/latest.md) · [Categories](https://forums.unrealengine.com/categories.md) · [Tags](https://forums.unrealengine.com/tags.md)

---

## [Will UClass Object be GC?](https://forums.unrealengine.com/t/will-uclass-object-be-gc/2007922)

<div class="topic-metadata">

**Author:** [@user\_26c4c94f4bfc5ec2ad831c0e160b3abebd1aea0ce84dd247069373](https://forums.unrealengine.com/u/user_26c4c94f4bfc5ec2ad831c0e160b3abebd1aea0ce84dd247069373)\
**Replies:** 0\
**Last updated:** [September 6, 2024, 8:35am UTC](https://forums.unrealengine.com/t/will-uclass-object-be-gc/2007922 "2024-09-06T08:35:23Z")

</div>

I wrote a TMap\<UClass\*, int32\>. But the key could be pointing to a UClass that is defined in a dynamicly loaded module. So if that module got unloaded, will that UClass\* become a dangling pointer? Or I can expect that on…

---

## [【UE4 Reflection】Why const member in parent UClass would be private for child UClass ?](https://forums.unrealengine.com/t/ue4-reflection-why-const-member-in-parent-uclass-would-be-private-for-child-uclass/768562)

<div class="topic-metadata">

**Author:** [@MarvinECL](https://forums.unrealengine.com/u/MarvinECL)\
**Replies:** 5\
**Last updated:** [April 22, 2023, 7:56am UTC](https://forums.unrealengine.com/t/ue4-reflection-why-const-member-in-parent-uclass-would-be-private-for-child-uclass/768562 "2023-04-22T07:56:09Z")

</div>

I have two uclasses and an compiler error here: UCLASS(BlueprintType, Blueprintable) class UCardCostFuncHolder : public UObject { GENERATED\_BODY() UCardCostFuncHolder() : CardCostDetails(FCardCost()){}; UCardCostF…

---

## [How to manage UObject instances](https://forums.unrealengine.com/t/how-to-manage-uobject-instances/630901)

<div class="topic-metadata">

**Author:** [@GSM](https://forums.unrealengine.com/u/GSM)\
**Replies:** 1\
**Last updated:** [August 19, 2022, 12:10am UTC](https://forums.unrealengine.com/t/how-to-manage-uobject-instances/630901 "2022-08-19T00:10:56Z")

</div>

Hi, i try to understand how to use allocation of Unreal object in Unreal 4.27.2. if i create a class derived from UObject (UMyClass), and i put some instances of it in a TMap of an actor, it works. UCLASS() class DEMO…

---

## [Proper Class type for Derived GameModes all in One Level?](https://forums.unrealengine.com/t/proper-class-type-for-derived-gamemodes-all-in-one-level/629000)

<div class="topic-metadata">

**Author:** [@markcham](https://forums.unrealengine.com/u/markcham)\
**Replies:** 4\
**Last updated:** [August 16, 2022, 3:34am UTC](https://forums.unrealengine.com/t/proper-class-type-for-derived-gamemodes-all-in-one-level/629000 "2022-08-16T03:34:27Z")

</div>

I’m creating an aim training game. I have a seperate level for the main menu, and the shooting range. These both have their own GameModes that I’ve created that work fine, called MainMenuGameModeBase and RangeGameModeBas…

---

## [Bug? Construct / CreateWidget accepts Abstract UClass](https://forums.unrealengine.com/t/bug-construct-createwidget-accepts-abstract-uclass/527638)

<div class="topic-metadata">

**Author:** [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Replies:** 1\
**Last updated:** [July 25, 2022, 4:14am UTC](https://forums.unrealengine.com/t/bug-construct-createwidget-accepts-abstract-uclass/527638 "2022-07-25T04:14:16Z")

</div>

As the title says, it is odd that the blueprint nodes used to spawn objects show abstract classes. I want to hide these classes to prevent Blueprint users from trying to spawn abstract c++ classes when they should be in…

---

## [Details Panel: How to remove categories from a Component](https://forums.unrealengine.com/t/details-panel-how-to-remove-categories-from-a-component/419054)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_06725ff11](https://forums.unrealengine.com/u/anonymous_user_06725ff11)\
**Replies:** 1\
**Last updated:** [February 8, 2022, 10:45am UTC](https://forums.unrealengine.com/t/details-panel-how-to-remove-categories-from-a-component/419054 "2022-02-08T10:45:23Z")

</div>

I found hideCategories for the UCLASS() however I have the following: UPROPERTY(VisibleAnywhere, BlueprintReadOnly ) USkeletalMeshComponent\* MeshComponent; and I want to hide all categories dealing with the SkeletalMe…

---

## [Delegate Broadcasted from UStruct and Subscribed from UClass](https://forums.unrealengine.com/t/delegate-broadcasted-from-ustruct-and-subscribed-from-uclass/491487)

<div class="topic-metadata">

**Author:** [@anil021](https://forums.unrealengine.com/u/anil021)\
**Replies:** 0\
**Last updated:** [December 1, 2021, 5:06pm UTC](https://forums.unrealengine.com/t/delegate-broadcasted-from-ustruct-and-subscribed-from-uclass/491487 "2021-12-01T17:06:30Z")

</div>

Hello, I have a ustruct to hold some attributes like health. Whenever a change occurs in this attribute, I wan’t to fire a delegate. Subscribed uobjects will act differently depending on their function. For a brief examp…

---

## ["Cannot access private member declared in class" despite public constructor](https://forums.unrealengine.com/t/cannot-access-private-member-declared-in-class-despite-public-constructor/488875)

<div class="topic-metadata">

**Author:** [@UTom](https://forums.unrealengine.com/u/UTom)\
**Replies:** 1\
**Last updated:** [September 17, 2021, 3:12pm UTC](https://forums.unrealengine.com/t/cannot-access-private-member-declared-in-class-despite-public-constructor/488875 "2021-09-17T15:12:53Z")

</div>

Hi all, i searched now for a while and tried unsuccessful to fix it, can you please help me with this error:

---

## [Getting all (public) properties of a UClass](https://forums.unrealengine.com/t/getting-all-public-properties-of-a-uclass/347466)

<div class="topic-metadata">

**Author:** [@Kiruse](https://forums.unrealengine.com/u/Kiruse)\
**Replies:** 3\
**Last updated:** [July 30, 2021, 10:03am UTC](https://forums.unrealengine.com/t/getting-all-public-properties-of-a-uclass/347466 "2021-07-30T10:03:21Z")

</div>

Hey there, I know it is possible to check if the UClass has a particular UProperty using HasProperty(), but I do not even know how go get such a UProperty. I had imagined the UClass would contain methods to check for pr…

---

## [Any ways to bind axes and actions in non-UClass classes?](https://forums.unrealengine.com/t/any-ways-to-bind-axes-and-actions-in-non-uclass-classes/480419)

<div class="topic-metadata">

**Author:** [@ACBYTES](https://forums.unrealengine.com/u/ACBYTES)\
**Replies:** 1\
**Last updated:** [March 17, 2021, 4:06pm UTC](https://forums.unrealengine.com/t/any-ways-to-bind-axes-and-actions-in-non-uclass-classes/480419 "2021-03-17T16:06:50Z")

</div>

Right now, I’m trying to get the input setup out of the player’s script and I don’t want to move it to an ActorComponent class or something that I should instantiate inside the game. Any ways to get it in the pure C++ cl…

---

## [UClass to Json](https://forums.unrealengine.com/t/uclass-to-json/470992)

<div class="topic-metadata">

**Author:** [@FlipFlopJon93](https://forums.unrealengine.com/u/FlipFlopJon93)\
**Replies:** 0\
**Last updated:** [September 7, 2020, 10:53pm UTC](https://forums.unrealengine.com/t/uclass-to-json/470992 "2020-09-07T22:53:30Z")

</div>

Hello, I’m trying to write all UProperties of UClass to a Json FString, but I can’t find a method to do this. Ideally, it would be great if there was a method similar to what you can do with UStruct’s with FJsonObjectC…

---

## [Empty UClass FuncMap](https://forums.unrealengine.com/t/empty-uclass-funcmap/464774)

<div class="topic-metadata">

**Author:** [@Crispy\_Penguin](https://forums.unrealengine.com/u/Crispy_Penguin)\
**Replies:** 4\
**Last updated:** [May 7, 2020, 10:42am UTC](https://forums.unrealengine.com/t/empty-uclass-funcmap/464774 "2020-05-07T10:42:04Z")

</div>

is the packaged game in shipping or development mode?

---

## [How to cast to UClass?](https://forums.unrealengine.com/t/how-to-cast-to-uclass/464343)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_d9228c26](https://forums.unrealengine.com/u/anonymous_user_d9228c26)\
**Replies:** 2\
**Last updated:** [April 29, 2020, 6:49pm UTC](https://forums.unrealengine.com/t/how-to-cast-to-uclass/464343 "2020-04-29T18:49:04Z")

</div>

Example below is not working, but it illustrates what I want to get I know that templates are not supported for UClass, but I’m searching for some version of cast which accepts uclass as a function parameter or any othe…

---

## [Performance Insights on UStruct vs UClass / Class](https://forums.unrealengine.com/t/performance-insights-on-ustruct-vs-uclass-class/464290)

<div class="topic-metadata">

**Author:** [@atanknomore](https://forums.unrealengine.com/u/atanknomore)\
**Replies:** 0\
**Last updated:** [April 26, 2020, 7:33pm UTC](https://forums.unrealengine.com/t/performance-insights-on-ustruct-vs-uclass-class/464290 "2020-04-26T19:33:19Z")

</div>

Hello, I’d like some further information on how different Class types utilize information. First, I will state that I holster most of my information and logic handling inside UStructs at the moment, and implement them i…

---

## [How is reflection information about a new C++ class stored?](https://forums.unrealengine.com/t/how-is-reflection-information-about-a-new-c-class-stored/454066)

<div class="topic-metadata">

**Author:** [@HappyMongoose](https://forums.unrealengine.com/u/HappyMongoose)\
**Replies:** 0\
**Last updated:** [August 19, 2019, 6:01am UTC](https://forums.unrealengine.com/t/how-is-reflection-information-about-a-new-c-class-stored/454066 "2019-08-19T06:01:50Z")

</div>

Hello, I would like to understand how the reflection/property system stores information about the classes whose definition is annotated with the UCLASS() macro. Does a definition like that result in a definition of ano…

---

## [Is TSubclassOf same as UClass\*](https://forums.unrealengine.com/t/is-tsubclassof-same-as-uclass/451920)

<div class="topic-metadata">

**Author:** [@bdgs-mrahman](https://forums.unrealengine.com/u/bdgs-mrahman)\
**Replies:** 1\
**Last updated:** [July 8, 2019, 6:18pm UTC](https://forums.unrealengine.com/t/is-tsubclassof-same-as-uclass/451920 "2019-07-08T18:18:56Z")

</div>

I understand that TSubClassOf is safer to use than UClass\*. But are these both essentially the same?

---

## [GetClass() vs StaticClass()](https://forums.unrealengine.com/t/getclass-vs-staticclass/341258)

<div class="topic-metadata">

**Author:** [@ShirtyKezRat](https://forums.unrealengine.com/u/ShirtyKezRat)\
**Replies:** 5\
**Last updated:** [January 28, 2019, 2:23pm UTC](https://forums.unrealengine.com/t/getclass-vs-staticclass/341258 "2019-01-28T14:23:33Z")

</div>

Hey, Decided to dig a little deeper in understanding UProperty’s and UClass’s etc. With this code I’m getting behavior I really don’t understand and I’m wondering if someone could explain this to me: AUObjectTester::AU…

---

## [How to create a slate widget for a UProperty of a UClass without the object instance](https://forums.unrealengine.com/t/how-to-create-a-slate-widget-for-a-uproperty-of-a-uclass-without-the-object-instance/434091)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_aa967a7a](https://forums.unrealengine.com/u/anonymous_user_aa967a7a)\
**Replies:** 3\
**Last updated:** [September 23, 2018, 1:02pm UTC](https://forums.unrealengine.com/t/how-to-create-a-slate-widget-for-a-uproperty-of-a-uclass-without-the-object-instance/434091 "2018-09-23T13:02:42Z")

</div>

I have the need to make a slate widget for a graph that allows me to see the UProperties of a UClass and to place a value for said UProperty. I can’t use the PropertyEditor since it seems to need the instance of the obj…

---

## [\[C++\] How to get UClass from TSubClassOf\<\>?](https://forums.unrealengine.com/t/c-how-to-get-uclass-from-tsubclassof/379067)

<div class="topic-metadata">

**Author:** [@yarpoplar](https://forums.unrealengine.com/u/yarpoplar)\
**Replies:** 2\
**Last updated:** [March 12, 2018, 1:38am UTC](https://forums.unrealengine.com/t/c-how-to-get-uclass-from-tsubclassof/379067 "2018-03-12T01:38:18Z")

</div>

Here is simple question. How to get UClass from TSubClassOf\<\>? For example I have TSubClassOf\<ACharacter\> TalkActor; But next code doesn’t works: TalkActor-\>GetClass() It’s returning not the right class, which I sel…

---

## [Have C++ UMG property show up in the Designer Editor](https://forums.unrealengine.com/t/have-c-umg-property-show-up-in-the-designer-editor/321540)

<div class="topic-metadata">

**Author:** [@ChrisTheEngineer\_1](https://forums.unrealengine.com/u/ChrisTheEngineer_1)\
**Replies:** 2\
**Last updated:** [January 10, 2018, 9:01pm UTC](https://forums.unrealengine.com/t/have-c-umg-property-show-up-in-the-designer-editor/321540 "2018-01-10T21:01:09Z")

</div>

Hello, I am trying to get a UMG property that I created in C++ to show up in the Designer Editor so it can be placed and manipulated visually. Specifically, I created a ComboBoxString that I need to manipulate in C++ p…

---

## [UCLASS() error](https://forums.unrealengine.com/t/uclass-error/331484)

<div class="topic-metadata">

**Author:** [@Sheed\_1](https://forums.unrealengine.com/u/Sheed_1)\
**Replies:** 16\
**Last updated:** [October 4, 2017, 4:33am UTC](https://forums.unrealengine.com/t/uclass-error/331484 "2017-10-04T04:33:46Z")

</div>

Hello. I receive this UCLASS error : " this declaration has no storage class or type specifier " whenever UCLASS isnt exactly on line 7,so therefore I can’t write anything above it.I’m receving this error even in the t…

---

## [Forward declaration issue with UPROPERTY](https://forums.unrealengine.com/t/forward-declaration-issue-with-uproperty/401097)

<div class="topic-metadata">

**Author:** [@YZMAAMZY](https://forums.unrealengine.com/u/YZMAAMZY)\
**Replies:** 0\
**Last updated:** [August 3, 2017, 3:28pm UTC](https://forums.unrealengine.com/t/forward-declaration-issue-with-uproperty/401097 "2017-08-03T15:28:55Z")

</div>

USTRUCT(BlueprintType) struct FRTSPlayer { GENERATED\_USTRUCT\_BODY() ... // own units UPROPERTY() FRTSUnitManager RTSUnitManager; ... }; USTRUCT() struct FRTSUnitManager { GENERATED\_USTRUCT\_BODY() …

---

## [Can't find class on android](https://forums.unrealengine.com/t/cant-find-class-on-android/392625)

<div class="topic-metadata">

**Author:** [@lucota90](https://forums.unrealengine.com/u/lucota90)\
**Replies:** 3\
**Last updated:** [May 5, 2017, 10:34pm UTC](https://forums.unrealengine.com/t/cant-find-class-on-android/392625 "2017-05-05T22:34:54Z")

</div>

I’m having an issue when playing my game on android gearVR, the package completes without errors and with some irrelevant warnings (about stuff thats not being used). Im testing a feature which reads a Json file that con…

---

## [Friend UClasses not working?](https://forums.unrealengine.com/t/friend-uclasses-not-working/290789)

<div class="topic-metadata">

**Author:** [@Lordink](https://forums.unrealengine.com/u/Lordink)\
**Replies:** 3\
**Last updated:** [November 13, 2016, 5:00pm UTC](https://forums.unrealengine.com/t/friend-uclasses-not-working/290789 "2016-11-13T17:00:43Z")

</div>

Hi guys, Do I get it right that Cpp’s Friend class functionality is not legit for UClasses? I assigned one class as a friend to my character class, however that class still can not access my protected variables in BPs (…

---

## [Creating custom content browser asset don't work](https://forums.unrealengine.com/t/creating-custom-content-browser-asset-dont-work/366611)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_95ee26c9](https://forums.unrealengine.com/u/anonymous_user_95ee26c9)\
**Replies:** 2\
**Last updated:** [August 9, 2016, 2:58pm UTC](https://forums.unrealengine.com/t/creating-custom-content-browser-asset-dont-work/366611 "2016-08-09T14:58:19Z")

</div>

You forgot to change your 9th line in CustomAsset.h. You have: class TESTPROJECT\_API URobotCreationData : public UDataAsset however your asset’s class is called UCustomAsset everywhere else in the code you provided. So…

---

## [Compiling fails as soon as I add a second UCLASS!?](https://forums.unrealengine.com/t/compiling-fails-as-soon-as-i-add-a-second-uclass/365588)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_d7cbf4ea](https://forums.unrealengine.com/u/anonymous_user_d7cbf4ea)\
**Replies:** 5\
**Last updated:** [August 2, 2016, 6:08pm UTC](https://forums.unrealengine.com/t/compiling-fails-as-soon-as-i-add-a-second-uclass/365588 "2016-08-02T18:08:31Z")

</div>

Hello I started to develop an Artnet Plugin. Sending the packages works fine now. But when I wanted to programm a udp Receiver I ran in to some strange compiling errors. I’m using Visual Studio Community 2015. I created…

---

## [Is it possible to use a UClass as a TMap key?](https://forums.unrealengine.com/t/is-it-possible-to-use-a-uclass-as-a-tmap-key/357728)

<div class="topic-metadata">

**Author:** [@ArcticKiwi](https://forums.unrealengine.com/u/ArcticKiwi)\
**Replies:** 3\
**Last updated:** [July 19, 2016, 8:50pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-use-a-uclass-as-a-tmap-key/357728 "2016-07-19T20:50:59Z")

</div>

Hello ! I find myself with several cases where I want to have a collection of UObject\*, created via a collection of TSubclassOf so that it’s data driven ( using Properties ) It works well with a TArray. My issue is th…

---

## [My c++ code should work, but UCLASS and class is throwing errors that can't be fixed](https://forums.unrealengine.com/t/my-c-code-should-work-but-uclass-and-class-is-throwing-errors-that-cant-be-fixed/364286)

<div class="topic-metadata">

**Author:** [@Matthew\_BpBuds](https://forums.unrealengine.com/u/Matthew_BpBuds)\
**Replies:** 19\
**Last updated:** [July 18, 2016, 9:18pm UTC](https://forums.unrealengine.com/t/my-c-code-should-work-but-uclass-and-class-is-throwing-errors-that-cant-be-fixed/364286 "2016-07-18T21:18:43Z")

</div>

I get the error: “This declaration has no storage class or type specifier” in regards to the word UCLASS, and “class” returns “Expected a ;” I have retried this at least 10 times, to NO avail. What is wrong? UCLASS(Blue…

---

## [What is the right syntax of FClassFinder and how could I generaly use it to find a specific blueprint?](https://forums.unrealengine.com/t/what-is-the-right-syntax-of-fclassfinder-and-how-could-i-generaly-use-it-to-find-a-specific-blueprint/363884)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_fb472bd0](https://forums.unrealengine.com/u/anonymous_user_fb472bd0)\
**Replies:** 2\
**Last updated:** [July 13, 2016, 2:39pm UTC](https://forums.unrealengine.com/t/what-is-the-right-syntax-of-fclassfinder-and-how-could-i-generaly-use-it-to-find-a-specific-blueprint/363884 "2016-07-13T14:39:05Z")

</div>

What is the right syntax of FClassFinder and how could I generally use it to find a specific blueprint? I have read a ton of information and couldn’t find explanation of syntax or any useful reference. Preferably I would…

---

## [Error saving UAssetUserData on StaticMesh](https://forums.unrealengine.com/t/error-saving-uassetuserdata-on-staticmesh/352327)

<div class="topic-metadata">

**Author:** [@duke22](https://forums.unrealengine.com/u/duke22)\
**Replies:** 1\
**Last updated:** [July 8, 2016, 11:56pm UTC](https://forums.unrealengine.com/t/error-saving-uassetuserdata-on-staticmesh/352327 "2016-07-08T23:56:42Z")

</div>

I’m trying to add a custom UAssetUserData class to a static-mesh. This goes well up until the point I try to save the asset: The class itself is pretty simple: #pragma once #includ…

[Next page](https://forums.unrealengine.com/tag/uclass/4827.md?match_all_tags=true&page=1&tags%5B%5D=UClass)
