Cant use Package Folder with "OdinMenuTree.AddAllAssetsAtPath"

Issue #797 resolved
Andreas Zeilhofer created an issue

My Project is split into Packages, but i cant fetch assets from these folders cause in AddAllAssetsAtPath "asset/" is prepended if not at the start of the path. Please change this line:

if (!assetFolderPath.ToLower().StartsWith("assets/"))

to

if (!assetFolderPath.ToLower().StartsWith("assets/") && !assetFolderPath.ToLower().StartsWith("packages/") )

This prepend functionality is in AddAllAssetsAtPathCombined aswell.

Comments (4)

  1. Log in to comment