Difference between revisions of "OnCellDetach - ObjectReference"

Jump to navigation Jump to search
imported>Rasikko
imported>Rasikko
 
Line 26: Line 26:
(For notes on the meaning of attachment, see the [[Talk:OnCellAttach_-_ObjectReference|talk]] page).
(For notes on the meaning of attachment, see the [[Talk:OnCellAttach_-_ObjectReference|talk]] page).
* If the reference is moved from its current cell to another, an object also leaving this reference's current cell will still trigger this event, while the reference being moved will trigger [[OnAttachedToCell - ObjectReference]]. In other words, these two events can fire at the same time.
* If the reference is moved from its current cell to another, an object also leaving this reference's current cell will still trigger this event, while the reference being moved will trigger [[OnAttachedToCell - ObjectReference]]. In other words, these two events can fire at the same time.
* [[GetParentCell - ObjectReference]] will return the cell that will attach if the reference is being moved from this cell to an attached one. You can also store the parent cell before this event is ran if you want to know what cell is being detached.


== See Also ==
== See Also ==
Anonymous user

Navigation menu