Class StringMetadata
A class which can be used as a filter for searching for metadata by string value.
Inherited Members
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.