playMaker

Author Topic: nGUI Camera Problem  (Read 2326 times)

kenuab

  • Playmaker Newbie
  • *
  • Posts: 10
nGUI Camera Problem
« on: July 17, 2012, 11:55:07 AM »
I made a menu manager in Playmaker (hangs on an empty object) that spawns an nGUI menu whenever needed from several points in the game. Works great first time only. The manager steps:

1. sets up necessary global variables with "get owners" and "set property"
2. activates menu,
3. activates menu camera (with "cut to camera", menu camera is listed as camera to cut to, "make main camera" selected),
4. waits for player to click "quit menu",
5. after click: cut to camera (back to game camera),
6. destroy menu,
7. resets globals and waits for event to activate again

While it works perfect on first spawn, on second, returns error that no camera is specified in step 3.  Evidently the destroy command removed the camera reference from the "cut to camera" playmaker action in step 3.  Not sure how this can happen.  Any suggestions for a workaround?