In out prior approach to weapon pickups I had it so certain pickups were deliberately oriented in the world. E.g. a bow pickup leaning against a wall. Sword in a stone, that sort of thing.
Now obviously the PickupSpawner has no mesh data to show until it spawns the child pickup from its InventoryItem at runtime.
It looks fairly straightforward to draw a mesh or wireframe using OnDrawGizmos(); so I was wondering if/how it might be possible to grab the mesh data in the pickup prefab in the editor. Obviously this is pretty trivial at runtime with an object reference to an instantiated object (and also unecesary since the object is then instantiated). I imagine a more direct approach of finding the correct file to read the data would be necessary but I have no idea how.
But, yeah, tl;dr it would be nice to have a way to access the mesh data contained in it’s pickup prefab and then use that data to draw it in OnDrawGizmos in the editor to aid placement / orientation; assuming the PickupSpawner orientation would translate correctly to the spawned object at runtime.