I just updated from 4.2 to 4.3, and I encountered a really weird issue. Well, long story short, child actor component’s position seems to be somehow modified depending on placement oin world. Say, I have a blueprint with one child actor component, relative location (0,0,0).
If I put the blueprint in (0,0,0) in the world, it’s fine, works good-everything spawns where it should. But if I move it away from (0,0,0), the child actor component moves further in the same direction from center.
In edit mode, it’s okay, the weird misplacement happens after clicking ‘simulate’ or ‘play’. Blueprint’s location doesn’t seem to change, only the child component’s.
Okay, I’m sending the simplest configuration-I place the ‘NewBlueprint2’ in the world. The key is for the child to simulate physics-otherwise it does not happen. Both blueprint made in editor, no c++ involved.
I am still looking into this. Please refrain from bumping threads unless the thread has gone unanaswered for several days. This clutters the answerhub and makes it more difficult for anyone to get assistance. Thank you.
I have been unable to reproduce this on my end. No matter what location I place the child blueprint at either in the components tab or in the live editor, it acts as intended. Can you post a video of what is occurring so I can see if I did something differently than you did? Thank you!
We have not heard from you in quite some time. I am marking this as answered for tracking purposes. If you are still experiencing this problem, please post here with the information requested. Thank you!
I am sorry for the reply delay-I decided to leave that issue alone and try to keep developping on UE4.2, where the problem doesn’t occur. But well, now I figured out that I should keep up with the newer versions of engine.
I cannot record a video, though-my hardware is too weak, UE4 alone makes it sweat. But I will write it down step by step:
Create a new blueprint, lets call it “Child”
Set its root component to be a static mesh component
Enable “Simulate physics” for the static mesh component
Obviously-set some static mesh for it, “Shape_Cube” will do
Create a new blueprint, “Parent”
Add a scene component to it
Add a “Child Actor” component to it
Set the Child actor component’s class to the “Child” blueprint
Spawn a couple of Parents around the world
Hit “Play” button
This will definitely lead to occurence of what i mentioned before. I tested it on a brand-new “Basic Code” project in UE4.4.
Important: The problem doesn’t seem to appear, when the Child has a Scene Component as root, and Static Mesh Component attached to it.
Okay, it’s been ALMOST fixed. Now it actually works when I test my level straight away. But when I try and open it with “Open Level” node the bug appears again.
+It also happens when I use “Spawn actor from class” node.
Any further fixes upcoming?
I attach screenshot-the top is when I play the current level(works correctly), the bottom-when I open level with “Open Level” node.
Edit: I packaged the game in Shipping configuration, and here the problem doesn’t appear(“Open level” node opens level without messing around)… Crazy stuff you got here!