What does the `fromScene` parameter of `GameObject#destroy` do?

The docs say it’s true if it’s being destroyed “by the Scene”, so does that mean we should never pass true to that function if we call it “manually”? What exactly does it change if true is passed in? The docs don’t seem to indicate what it does, just potentially when it might be true.

(The exact docs for this param: “True if this Game Object is being destroyed by the Scene, false if not.”)

I’m not sure it changes anything now, but it is passed to the DESTROY event where you could read it if interested. You should never call destroy(true) yourself, yes.

1 Like