My goal is: ObjectB will be destroyed when objectA is destroyed, under "onDestroy"(preview.js, line 2805) in ObjectA.
[quote:pzkzjfyp]destroy ObjectA -> "onDestroy" in ObjectA -> destroy ObjectB
In my study, function "ClearDeathRowForType"(preview.js line 2661) should be called twice for these two types of destroyed objects, in a tick or during many ticks.
But it only had been called once for ObjectA in this case.
"cnds.OnDestroyed" (preview.js line 2610) of ObjectB had been fired in this case. It might be a solution that hang "onDestroy" function call after "cnds.OnDestroyed" trigger.