I recently have encountered a very strange issue. After building my lighting and then closing the project, when I opened it again later on, some of my weapons that I have that spawn in are invisible when they spawn.
I did not change any code in the weapons themselves, I did not set there visibility to off or anything like that. They are visible and are spawning but are just not being rendered and I cannot see them in game. When I drag the same actors into the editor view I can see them perfectly fine.
Hi, the weapons do not have any collision enabled and the spawn in the player’s hands. I ran Print Strings in different parts of the code and the weapons are being spawned correctly, it tells me which weapon is spawned and where it is spawned and what socket it is attached to. The correct animation state is also selected and all the necessary code that relies on the weapon being spawned such as firing and reloading logic etc. are all working yet the gun remains invisible.
I have tried to spawn them in a different location without attaching them but they are still not visible.