I’ve looked all over in the documentation and online resources for a way to get the Object reference to a folder in my project when I have the path of the folder (relative to the project). I’m attempting to automate the building of several asset bundles, some of which are based on folder hierarchy rather than being in a scene. Building an asset bundle for a folder is easy enough to do, if based on manually selecting the folder within the project window. However, I can’t seem to find a way to take the relative path (e.g. “Assets/Bundles/Shared Files”) and get a reference to an Object (like that return from Selection.activeObject) using the Unity API.
Does anyone know of a way to get such a reference? Or even a way to set the selection based on the path within the project rather than already having a reference to an Object?