Method WouldDeclare
WouldDeclare(string, List<string>, out string)
Whether the folder rules declare this exact asset path, and as what kind.
This is the same test CollectFolders(Dictionary<string, Declared>) applies, extracted so there is one copy of it: the
folder scan asks it for every asset an included folder holds, and the editor's authoring source
(Editor/ContentPipeline/ContentAuthoringSource.cs) asks it for the one asset an import callback reported.
A second copy is the thing that drifts, and the drift surfaces as content that is in the project, in the
build, and silently not in the editor.
It answers the folder rules only. The other two collectors are not reachable from a path alone — ink keys are resolved knots and the explicit list lives in a JSON file — so a caller that needs the complete set calls Collect(out List<string>) once and then keeps up through this method.
public static bool WouldDeclare(string path, List<string> contentFolders, out string kind)
Parameters
Returns
WouldDeclare(string, out string)
Convenience overload for a one-off question; builds the folder list first.
public static bool WouldDeclare(string path, out string kind)