x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

[C++] UTextRenderComponent Linker Errors?

Product Version: Not Selected
Tags:
more ▼

asked Mar 23 '14 at 09:07 PM in C++ Programming

avatar image

Skydive
116 18 24 24

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

3 answers: sort voted first

Fixed. Use the member variables instead.

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

answered Mar 23 '14 at 09:18 PM

avatar image

Skydive
116 18 24 24

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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`
more ▼

answered Mar 23 '14 at 09:14 PM

avatar image

Marc Audy STAFF
2.2k 42 35 95

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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

more ▼

answered Mar 23 '14 at 09:10 PM

avatar image

Rama
10.6k 446 346 1088

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question