[C++] UTextRenderComponent Linker Errors?

It looks like UTextRenderComponent isn’t properly exposed for linking. You’ll see in the UCLASS that it is marked MinimalAPI which only exports knowledge of the class and then each function that should be exposed would need to be marked ENGINE_API. However, it would probably be easier and more appropriate to mark the entire class as exported by removing the MinimalAPI from UCLASS and marking the class as ENGINE_API.

You can make the following change in TextRenderComponent and it should allow you to link

UCLASS(HeaderGroup=Component, ClassGroup=Rendering, hidecategories=(Object,LOD,Physics,TextureStreaming,Activation,"Components|Activation",Collision), editinlinenew, meta=(BlueprintSpawnableComponent = ""))
class ENGINE_API UTextRenderComponent : public UPrimitiveComponent`

Any ideas? :confused:

look up textrendercomp

and see what .h file it is included in, most likely ending in “Classes”

include that .h file in your class .h that wants to use it

Fixed. Use the member variables instead.

TSubobjectPtr<class UTextRenderComponent> TextRenderer
TextRenderer->Text = Text;
TextRenderer->TextRenderColor = Color;
TextRenderer->Font = Font;