Loading assets by path in the editor?

If I want to put a dependency for something (such as an atlas for a sprite) in an asset bundle and then instantiate the object and plug in the dependency from the downloaded asset bundle that works fine but what if I want to make it so when I push a button while the editor is stopped it temporarily loads the dependency for manipulation in the editor, and what if I want to play the game in the editor without having to build an asset bundle and upload it every time? There doesn’t seem to be any simple way to load assets from a path except from the resources folder, but if I put the assets in there they would be build with the game defeating the purpose of the asset bundles.

You can use Resources.LoadAssetAtPath in editor

	GameObject prefab;
#if UNITY_EDITOR
	prefab = (GameObject)Resources.LoadAssetAtPath("Assets/My Assets/Cube.fbx", typeof(GameObject));
#else
	WWW www = new WWW("URL");
	yield return www;
	prefab = www.assetBundle.mainAsset;
#endif
	Instantiate(prefab);

PS: Remember the root “Assets/” prefix if your asset bundle source is in your unity project folder.

Thanks! I automatically assumed that all Resources functions were only applicable to assets in the Resources folder.