So, I'm trying to assimilate into UE. Today I'd discovered, that I can't use dynamic_cast with classes, that don't derive from UObject. Later on I found out, that I can't use templates with UObjects.
My question is: what are the limitations for non-unreal classes and what are the limitations for unreal classes?
Thanks in advance
asked Jan 29 '15 at 03:34 PM in C++ Programming
Limitations for non-unreal classes:
In general, there is no limitation for it. UE4 use visual studio 2013 compiler. Therefore, if you class compiles in non-UE4 project, it would be compile in UE4 project. By default, run time type identification is disabled in UE4. If you really need it, just add next string to your project module rules (*.Build.cs).
In addition to Shadowriver about uobjects:
You cannot create class derived from two “unreal classes”. Can only inherit from non-UObjects or UInterface derived interfaces.
Best regards, Gleb
answered Jan 30 '15 at 01:35 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here