Difference between revisions of "OnCellDetach - ObjectReference"
OnCellDetach - ObjectReference (edit)
Revision as of 09:28, 27 October 2021
, 09:28, 27 October 2021→Notes
imported>Rasikko m (→Notes) |
imported>Rasikko (→Notes) |
||
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 == |