[UE4.8 preview]C++ created subobjects don't appear at correct location when Playing In Editor(Standalone Game works properly)

41850-subobject.png

It’s the subobject creation code in the constructor of a character class. Then I created a blueprint inherited that C++ character class and placed it in the map. However, when playing in editor, the sphere just appeared at world origin (0, 0, 0) instead of the location of the character. Whereas, when playing in Standalone Game, it worked properly. But after a Rebuild (keeping UE4 editor open) in Visual Studio 2013, it worked also correctly when playing in editor. So it seems to be a bug.

Hey Awesome_Junior_Miss-

I added the code you’ve posted to a new character class and compiled. After creating a blueprint based on that class and adding it to the level I saw the sphere component show up at the correct location during PIE. It sounds as though building the solution in Visual Studio again solved the issue for you however feel free to let us know if you see this happening again.

Cheers