worldspace UI not destroyed when parent GameObject is destroyed. bug?
I have the following setup -parent - canvas - childButton
childButton calls a function on a component on parent during Update(). In childButton's clicked handler, I call Destroy(parent). I would expect that I do not receive an Update() for childButton anymore, or if I do, the parent GameObject is still around as well as all its components. But the actual behaviour is that all parent's components are gone before childButton receives another Update().
This doesn't conform what the documentation suggests here: http://docs.unity3d.com/ScriptReference/Object.Destroy.html Actual object destruction is always delayed until after the current Update loop, but will always be done before rendering.
Comment