playMaker

Author Topic: instance(object) cleanup in Unity/Playmaker  (Read 2063 times)

kiriri

  • Hero Member
  • *****
  • Posts: 506
instance(object) cleanup in Unity/Playmaker
« on: December 20, 2012, 07:32:05 AM »
Hey, I've been wondering, I've written some actions which instantiate new kinds of objects, like meshes etc. I know that if I define a variable within a function, it is automatically cleared once the function is completed. However, in some cases I need to use global private variables too. What happens to them after the action is completed? Is there some mechanism for this built in Unity/ Playmaker? Or could it cause stack overflows etc?

,kiriri
Best,
Sven