Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: linchengru on March 13, 2020, 02:05:17 AM

Title: Sprites in objects created from FSM not appearing in game. SOLVED
Post by: linchengru on March 13, 2020, 02:05:17 AM
Hi everyone , quite new to this so I hope there isn't something obvious I am missing.

I am using Create Object to spawn objects from prefabs. These objects appear in the scene view and they are also present in the game, in that the player's interactions with them still work when she enters their box colliders. However, the sprites do not appear in game view.

Still stranger, when I drag and drop an identical prefab directly from project to scene, the new object displays fine. Similarly, if I pause the game and drag and drop, the new object also displays fine. I have gone through drag-and-dropped objects and compared them with objects spawned from FSM from the same prefab, and property by property I can see no difference between them.

Does anyone know why this is happening and how to solve it?

Thanks!

UPDATE: I was able to resolve this issue by raising the z position of all my spawn points. Thanks for your attention!
Title: Re: Sprites in objects created from FSM not appearing in game.
Post by: djaydino on March 13, 2020, 02:39:59 AM
Hi.
Could you show this in a video, including the inspector.
it might be layer issue or camera issue