docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ImportSearchFilter

    A filter for selecting assets to import.

    Inheritance
    object
    ImportSearchFilter
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.AssetManager.Editor
    Assembly: Unity.AssetManager.Core.Editor.dll
    Syntax
    [Serializable]
    public class ImportSearchFilter
    Remarks

    The values within each enumerable property will be combined by "OR" logic, meaning that if any of the values in the list match, the asset will be included in the search results. The properties will be combined by "AND" logic, meaning that there must exist a match in each populated property for an asset to be included in the search results.

    Properties

    AssetIds

    Searches for all assets with the specified IDs.

    Declaration
    public IEnumerable<string> AssetIds { get; set; }
    Property Value
    Type Description
    IEnumerable<string>
    Examples

    669a8e0594386f320df8e315

    AssetTypes

    Searches for assets with any of the specified types.

    Declaration
    public IEnumerable<AssetType> AssetTypes { get; set; }
    Property Value
    Type Description
    IEnumerable<AssetType>

    Collections

    Searches for assets in the specified collections. You must provide the full path to the collection including parent collections.

    Declaration
    public IEnumerable<string> Collections { get; set; }
    Property Value
    Type Description
    IEnumerable<string>
    Remarks

    Searching in collections can only be performed if exactly 1 project is added to the ProjectIds property.

    Examples

    For a collection without parent, use the collection name only: My Collection For a nested collection, provide the full path: Parent Collection/Child Collection/My Collection

    CreatedByUserIds

    Searches for assets created by any of the specified users, by their IDs.

    Declaration
    public IEnumerable<string> CreatedByUserIds { get; set; }
    Property Value
    Type Description
    IEnumerable<string>
    Remarks

    To convert a user name to an id, use GetUserIdsFromUserNameAsync(string, CancellationToken) when user ids are unknown.

    Examples

    9876543211234

    CustomMetadata

    Searches for assets with any of the specified custom metadata fields, where the key represents the field definition key and the value is a searchable field value. Keys can be converted from display names using the GetMetadataKeyFromDisplayNameAsync(string, CancellationToken) method.

    Declaration
    public MetadataSearchFilter CustomMetadata { get; set; }
    Property Value
    Type Description
    MetadataSearchFilter

    Labels

    Searches for assets with any of the specified version labels.

    Declaration
    public IEnumerable<string> Labels { get; set; }
    Property Value
    Type Description
    IEnumerable<string>
    Examples

    Latest, Pending, etc.

    ProjectIds

    Searches for assets in the specified projects; if left empty, the search will be performed in all projects.

    Declaration
    public IEnumerable<string> ProjectIds { get; set; }
    Property Value
    Type Description
    IEnumerable<string>
    Examples

    Expects a Guid: 00aa0aa0-a0aa-0a0a-a0a0-a0a0aa0a0a0a

    Statuses

    Searches for assets with any of the specified statuses.

    Declaration
    public IEnumerable<string> Statuses { get; set; }
    Property Value
    Type Description
    IEnumerable<string>
    Examples

    Draft, In review, Approved, Rejected, Published, Withdrawn, etc.

    Tags

    Searches for assets with any of the specified tags.

    Declaration
    public IEnumerable<string> Tags { get; set; }
    Property Value
    Type Description
    IEnumerable<string>
    Examples

    Prefab, Material, Texture2D, Texture, etc.

    UpdatedByUserIds

    Searches for assets updated by any of the specified users, by their IDs.

    Declaration
    public IEnumerable<string> UpdatedByUserIds { get; set; }
    Property Value
    Type Description
    IEnumerable<string>
    Remarks

    To convert a user name to an id, use GetUserIdsFromUserNameAsync(string, CancellationToken) when user ids are unknown.

    Examples

    9876543211234

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)