playMaker

Author Topic: Sprites in objects created from FSM not appearing in game. SOLVED  (Read 753 times)

linchengru

  • Playmaker Newbie
  • *
  • Posts: 1
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!
« Last Edit: March 13, 2020, 03:26:27 AM by linchengru »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Sprites in objects created from FSM not appearing in game.
« Reply #1 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