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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

Setting a reference variable to the AnimBP in the actor construction script creates a new AnimBP instance

I'm using a binary UE 4.12.0 Preview 4 build. When I create an animation blueprint reference variable in the actor blueprint that owns it, and then set it in the actor's construction script, a new animation blueprint instance is created instead of a reference to the current animation blueprint.

Repro steps:

1) Create a new ThirdPersonCharacter blueprint project for testing.

2) Open the ThirdPersonCharacter blueprint and add a new variable of type "Third Person Anim BP Reference" called "MyAnimBP".

alt text

3) Set this variable from the character construction script as follows:

alt text

4) If you Simulate (Alt+S) and open the ThirdPerson_AnimBP, you'll see two instances under Debug Filter:

alt text

5) The problem can be also be shown by adding the following nodes to the character event graph: alt text

6) Play the game and move the character. Notice that a speed of zero is always printed on screen. This is because our AnimBP is new instance instead of the character's instance.

7) The problem does not happen if instead of setting the variable during construction, we set it during Begin Play. Remove the construction script nodes and add the following to the event graph:

alt text

8) Play the game again and see that the speed is now printed properly. So the problem happens with construction script only.

Product Version: UE 4.12 Preview
Tags:
repro1.png (8.1 kB)
repro2.png (72.7 kB)
repro3.png (8.8 kB)
repro4.png (66.5 kB)
repro5.png (67.5 kB)
more ▼

asked May 24 '16 at 06:02 AM in Bug Reports

avatar image

Ricardo Costa
6 2 4

avatar image MrTheRich Feb 26 '19 at 10:04 PM

I'm not able to get the node "get anim instance" at all in a construction script. How did you do it? seems like magic to me...

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Hi Ricardo Costa,

I was able to reproduce this on my end and have entered a bug report, UE-31229, to be assessed by the development staff.

more ▼

answered May 24 '16 at 05:59 PM

avatar image emperor_katax Nov 03 '17 at 01:47 PM

... kind of same issue ... here are screen shots .... seems ThirdPerson_AnimBP not responding and well it is part of default engine contents .. I just add one event there ..

here in ThirdPerson_AnimBP alt text

and here in my BP_Parser blueprint

alt text

Can you please let me know if there is any alternative solution for this ... ? I Like to play with speed in state machine in "Default" 3rd person character and Event Dispatcher looks like a solution, but it doesn't work thou.....

2.png (257.0 kB)
1.png (145.2 kB)
avatar image emperor_katax Nov 03 '17 at 03:03 PM

... fixed my issue with this solution ... I got mesh from my spawned character and from that mesh, I got Anim Instance and that. was a succeed on Target ... Please if you have any suggestions, leave comments... : ) ,,

BP_Parser

alt text

ThirdPerson_AnimBP

alt text

So in result, I can smoothly change between idle and run/walk depends on Speed value which I pass to state machine in ThirdPerson_AnimBP

3.png (180.5 kB)
4.png (173.3 kB)
(comments are locked)
10|2000 characters needed characters left
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