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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

[Closed] InitializeFromAsset is not called on instanced behavior tree nodes in subtree

Hi,

We have an instanced decorator (bCreateNodeInstance) which is used in a sub tree activated through the RunBehaviour Task. This decorator uses blackboard keys and therefore implements InitializeFromAsset to resolve the selected keys. InitializeFromAsset is called on the 'template node', however it is not called on the actual instance created through StaticDuplicateObject, nor are the resolved key values automagically copied in this step. As a consequence once I need the keys in my instanced node they have not been resolved yet. Am I doing something wrong or is this a bug? And how do I solve this?

Best regards, Steijn

Product Version: Not Selected
Tags:
more ▼

asked Jul 25 '16 at 03:58 PM in C++ Programming

avatar image

Answers.Archive STAFF
1.9k 205 312 684

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

The question has been closed Jul 25 '16 at 03:59 PM by AndrewHurley for the following reason:

The question is answered, right answer was accepted


1 answer: sort voted first

Sounds like a bug. Please modify UBTNode::InitializeInSubtree function to call

 NodeInstance->InitializeFromAsset(TreeAsset);

on newly created object, right after NodeInstance->InitializeNode() .

more ▼

answered Jul 25 '16 at 03:58 PM

avatar image

Answers.Archive STAFF
1.9k 205 312 684

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

Follow this question

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

Answers to this question