Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: kiriri on December 20, 2012, 07:32:05 AM

Title: instance(object) cleanup in Unity/Playmaker
Post by: kiriri 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