Skip to main content
InaCentaur
Inspiring
May 6, 2025
Question

What happens to ownership of object by Player after Player crashes or leaves the world?

What happens to ownership of object by Player after Player crashes or leaves the world?

 

Suppose I have entity objects in the world that when the player grabs, they get assigned ownership by ts 

Is this permanent or just duration of player being in-world?

What happens to ownership after player leaves the world?

3 replies

SeeingBlue
Honored Contributor
May 6, 2025

You can find lot of detail regarding ownership in the creator manual, but this section specifically talks about your question: https://developers.meta.com/horizon-worlds/learn/documentation/mhcp-program/community-tutorials/creator-manual#automatic-ownership-transfers

Upcoming Events : Performance Pro - UI Unleashed - Building Responsive & Performant Interfaces Thursday June 19th 5:00 PM PT - Register June Programming Calendar
InaCentaur
Inspiring
May 6, 2025

i read that but i guess i am still confused what happens if an entity is orphaned from a user who crashed etc - does the entity just get disposed/deleted? Is that Discontinuous ownership transfer or Automatic ownership transfer?

SeeingBlue
Honored Contributor
May 7, 2025

A spawned entity will not dispose of itself unless you program it to do so. Ownership will just revert back to the serverplayer automatically when a player exits either by crash or manually.

Upcoming Events : Performance Pro - UI Unleashed - Building Responsive & Performant Interfaces Thursday June 19th 5:00 PM PT - Register June Programming Calendar