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"

Graph is linked to private object(s) in an external package

I have exactly the same problem as over here, except that the solution does not work for me. Wondering if it's because my children aren't pointers...

I have this struct:

 USTRUCT()
 struct FChild {
     UShapeComponent* bounds;
 }

And, in the parent class:

 UPROPERTY()
 TArray<FChild> Children;

I am creating FChild instances like this:

 void AParent::Init() {
     uint8_t index = Children.Add(FChild());
     Children[index].Init(this);
 }
 
 void FChild::Init(AParent* parent) {
     bounds = NewObject<UBoxComponent>(parent, "Bounds");
 }

As can be seen, I'm passing the parent as the Outer when calling NewObject, but I still get the "Graph is linked to private object(s) in an external package" error when I try to save. How do I fix this?

Product Version: UE 4.8
Tags:
more ▼

asked Nov 25 '15 at 01:17 AM in C++ Programming

avatar image

sgp
166 33 43 56

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

1 answer: sort voted first

Found the reason: It was because I was calling Init() in the constructor of the parent. When I moved it out to PostActorCreated() instead, it worked fine.

more ▼

answered Nov 29 '15 at 01:23 AM

avatar image

sgp
166 33 43 56

(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