Skip to content

FolderSpec

ClassAssetInventoryAssetInventory.Editor
public sealed class FolderSpec

Describes one configured source folder, its scan rules, and how discovered content is classified and indexed.

public int folderType

Returns

System.Int32

public int scanFor

Returns

System.Int32

public bool enabled

Returns

System.Boolean

public bool assignTag

Returns

System.Boolean

public string tag

Returns

System.String

public bool storeRelative

Returns

System.Boolean

public string relativeKey

Returns

System.String

public string location

Returns

System.String

public string pattern

Returns

System.String

public string excludedExtensions

Returns

System.String

public string excludedDirectories

Returns

System.String

public bool createPreviews

Returns

System.Boolean

public bool removeOrphans

Returns

System.Boolean

public bool attachToPackage

Returns

System.Boolean

public int packageMode

Returns

System.Int32

public bool detectUnityProjects

Returns

System.Boolean

public bool checkSize

Returns

System.Boolean

public FolderSpec()

public FolderSpec(string location)

Creates a source-folder specification rooted at the supplied filesystem location.

Parameters

Name Type
location System.String
public FolderSpec(FolderSpec other)

Creates an independent copy of the supplied source-folder specification.

Parameters

Name Type
other AssetInventory.FolderSpec

public string GetLocation(bool expanded)

Returns the configured source path after optional variable expansion and platform normalization.

Parameters

Name Type
expanded System.Boolean

Returns

System.String

public override string ToString()

Returns

System.String