Runtime Item Pickup Position Not being Set

RobbieNI

Member
Hi there,

I have created a pickup for a weapon in my game however the position is not being set for it once it has been picked up, despite the fact that this position has been changed in the Third Person Perspective Script. This is shown clearly in the attached screenshots.

Any idea why this isn't being set?

Thanks,
Robbie.
 

Attachments

  • 1.PNG
    1.PNG
    37.7 KB · Views: 10
  • 2.PNG
    2.PNG
    12.4 KB · Views: 10
Does it have a FirstPersonPerspectiveItem component with a different LocalSpawnPosition value? Also, can you log PerspectiveItem.Initialize to make sure its transform.localPosition is being set? (Line 52)
 
It doesn't have any other PerspectiveItem components on it. I logged the value and it seems to be getting set in code, just not updating the actual position field in the inspector.
 
Does the bow/katana get positioned correctly within the demo scene? You can verify that it is being set by setting a breakpoint within PerspectiveItem.Initialize. The localPosition is set at this location.
 
Yep, the bow/Katana are being set correctly in the demo scene. The breakpoint is also being hit in initialize. As I said the rotation is being set correctly, just not the position so I would assume this also proves that the item is being initialized?
 
Top