Is it possible to add dropped actors to a data layer at runtime?

G’day all,

I’m mucking about with world partition and data layers, and have come across an issue that for the life of me I cannot get my head around.

My player character has an inventory, and can pick up and drop items. These items save and re-load if you load a saved game, and place them in the world where they were dropped.

My issue comes with data layers for interiors of buildings. If the player drops an item, and then leaves the location, the dropped items fall through now deactivated data layer.

Is there a way to detect what data layer an actor/mesh is in at run time? Through a line trace or something perhaps when the item is dropped, so it can check what it lands on and then find out what data layer it is a part of, then add the item to that data layer?

Any help is super appreciated!

I have only tried to use data layers a bit but they currently don’t seem to be particularly dynamic. From what I can see, layers can only really be hidden or not hidden but I can’t find a way to check what layer an object is in or change it.

That’s about all I could find as well, thank you for the response anyway!