Function

Available since v2.3.0

object
Object
An object instance.
object
Object
The new owner object of the object instance.

setOwner forces a new owner on a given object instance. This is primarily useful in some testing cases.