Gun exists in the world, but is not visible

I have UE 4.13 and using Spawn Actor from Class to spawn a gun and attach to the character socket. The nodes are typical and work for the main character, but don’t for my enemies. No errors.

The problem is that for enemies the gun is spawned and attached, but invisible. I must click Visible under Rendering to uncheck and check it again for gun to make it appear in the world. Is it a bug?

It;s a typical logic, no errors This logic works for the player, but not for enemies. The gun is spawned, because I see it in the Outliner and in the right position. But it is not visible.

I think it’s a rendering problem because for the Main player the gun sometimes doesn’t appear either. My scene seems to have too much stuff for rendering (foliage and a big terrain)

Hello Tomza,

Could you show the logic of how you’re spawning this actor as well as the logic you’re using to attach it? Please also check the settings of the actor during play, after it has been attached, to ensure that it doesn’t have any alternate visibility options on, such as being set to invisible in general or only visible to the controlling player, as the gun model in a FPS game would be.

It should be easy to test if that’s the problem. Try creating a new default level and place some spawners in it. This should let you know if it’s the other things in the level causing it to be rendered incorrectly.

Thank you, Matthew. I will check it and will write.

We haven’t heard from you in a while, Tomza. Are you still experiencing this issue? If so, was what I suggested in my previous comment of any help? In the meantime, I’ll be marking this issue as resolved for tracking purposes.

Hello Matthew,

Sorry for being late. Yes, still the issue, but as I said before it is connected with rendering. Too much stuff for render, so instead of spawning the gun in this way, I will just place it in the scene and then I will be attached to the character. Thank you!