Hello. I write simple code for weapon mesh and bullet start, but when i spawn blueprint what extends of this class it’s spawn incorrect. On image it’s a small yellow border after text.
Looks like the weapon is at a correct position, but not the mesh, select the “baseMesh” in the childrens, and see it’s position. you probably have some code to attach it, that would be a problem in that place ( wrong socket name or anything )
if you have some code moving “basemesh” or reattaching it, could you share it ?
Thanks guys for help. I create weapon in blueprint. And it’s OK, but i want make it with C. Help with one other problem. I work on Unity before UE and now i have small problem with raycasts.alt text
Sometimes Vetcor of Hit result location qual is (0,0,0). Maybe something wrong with layers or with colliders? Help me please
286183-
][1]
you should add a if based on the “return value” of “GetHitResultUnderCursorbyChanel” meaning the result is valid ( if it has hit something or anything )