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"

Help With TDoubleLinkedList

So I have a data implementation which would be perfect for a linked list, but would suffer considerably using a TArray, however when I try to store a reference pointer in TDoubleLinkedList and then try to retrieve that pointer using TDoubleLinkedList::GetTail() it does not allow me to access UInstancedStaticMeshComponent members even if I try to cast directly to UInstancedStaticMeshComponent.

Here is the exact snippet of code I'm using

 UInstancedStaticMeshComponent* Jim;
 boxy.AddTail(Jim);
 boxy.GetTail()->AddInstanceWorldSpace(Transform); //this is the line that returns error from compiler

the error returned is No member named 'AddInstanceWorldSpace' in TDoubleLinkedList::TDoubleLinkedListNode

Since the documentation for TDoubleLInkedList is pretty much non-existent, any help here would be highly appreciated.

Product Version: UE 4.18
Tags:
more ▼

asked Mar 31 '18 at 02:26 PM in C++ Programming

avatar image

siditious
45 8 13 15

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

2 answers: sort voted first

Try (*boxy.GetTail())->AddInstanceWorldSpace(Transform);

more ▼

answered Oct 02 '18 at 01:32 AM

avatar image

TooManyCrashes
161 5 12 19

avatar image siditious Dec 29 '18 at 02:31 PM

Definitely an old post, but just in case anyone else here runs into the problem, this is the correct answer.

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

Try

  (*boxy.GetTail())->AddInstanceWorldSpace(Transform);
more ▼

answered Oct 02 '18 at 01:32 AM

avatar image

TooManyCrashes
161 5 12 19

(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