Skip to main content

pack_entity

Function pack_entity 

Source
pub(crate) fn pack_entity(e: EntityId) -> u64
Expand description

Packs an EntityId into a u64 for drag-and-drop payloads. Layout: high 32 = generation, low 32 = index. Also used by the asset browser’s drop handler to ingest entity drags from the scene tree (drop = create prefab in the current folder).