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


  • Hero Member
  • *****
  • Posts: 506
    • View Profile
instance(object) cleanup in Unity/Playmaker
« on: December 20, 2012, 05: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?