docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class StringMetadata

    A class which can be used as a filter for searching for metadata by string value.

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

    Constructors

    StringMetadata(string)

    Creates a new instance of the StringMetadata class.

    Declaration
    public StringMetadata(string value)
    Parameters
    Type Name Description
    string value

    The searchable value of a text metadata. This must match the entirety of the text value.

    Examples

    Given a metadata value of "Hello World", the value of the search string must be "Hello World".
    Given a url metadata with a label "Unity" and a url of "https://unity.com", the value of the search string must be "Unity".
    Given a url metadata with no label and a url of "https://unity.com", the value of the search string must be "https://unity.com".

    Properties

    Value

    The searchable value of a text metadata. This must match the entirety of the text value.

    Declaration
    public string Value { get; }
    Property Value
    Type Description
    string
    Examples

    Given a metadata value of "Hello World", the value of the search string must be "Hello World".
    Given a url metadata with a label "Unity" and a url of "https://unity.com", the value of the search string must be "Unity".
    Given a url metadata with no label and a url of "https://unity.com", the value of the search string must be "https://unity.com".
    Given a boolean metadata, valid search terms are "true" and "false". Alternatively, search with a BooleanMetadata.
    Given a number metadata, the string representation of the value can be used. Alternatively, search with a NumberMetadata.

    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)