public readonly record struct AssetIdIdentity of an asset, assigned once when the asset is first imported and never changed. It is what a .meta sidecar carries and what every reference between assets stores, so moving or renaming a file breaks nothing.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
The default text form is 32 undelimited hex digits ("N") because that form is what goes into sidecars, catalogues, and paths; parsing accepts every layout Guid accepts.
Fields and properties (4)
public Guid Valuepublic const int TextLengthNumber of characters ToString writes.
public static AssetId EmptyThe id of no asset — a null reference in a serialised graph.
public bool IsEmptyWhether this is Empty.
Methods (17)
public AssetId(Guid Value)Identity of an asset, assigned once when the asset is first imported and never changed. It is what a .meta sidecar carries and what every reference between assets stores, so moving or renaming a file breaks nothing.
public static AssetId New()Mints an id for a newly imported asset.
public int CompareTo(AssetId other)Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
public static bool operator <(AssetId left, AssetId right)Whether sorts before .
public static bool operator <=(AssetId left, AssetId right)Whether sorts before or equal to .
public static bool operator >(AssetId left, AssetId right)Whether sorts after .
public static bool operator >=(AssetId left, AssetId right)Whether sorts after or equal to .
public override string ToString()Renders the id as 32 undelimited hex digits.
public string ToString(string? format, IFormatProvider? formatProvider)Formats the value of the current instance using the specified format.
public bool TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format = default(ReadOnlySpan<char>), IFormatProvider? provider = null)Tries to format the value of the current instance into the provided span of characters.
public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, ReadOnlySpan<char> format = default(ReadOnlySpan<char>), IFormatProvider? provider = null)Tries to format the value of the current instance as UTF-8 into the provided span of bytes.
public static AssetId Parse(string s, IFormatProvider? provider = null)Parses a string into a value.
public static AssetId Parse(ReadOnlySpan<char> s, IFormatProvider? provider = null)Parses a span of characters into a value.
public static bool TryParse(string? s, IFormatProvider? provider, out AssetId result)Tries to parse a string into a value.
public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out AssetId result)Tries to parse a span of characters into a value.
public static bool TryParse(string? s, out AssetId result)Parses an id in any layout Guid accepts.
public static bool TryParse(ReadOnlySpan<char> s, out AssetId result)
Used by (206, showing 40)
- AssetIdSerializerVixen.Core.Serialization
- AssetManagerTestsVixen.Assets.Tests
- AssetMaterialSourceTestsVixen.Engine.Renderer.Tests
- AssetMetaVixen.Core.Yaml
- AssetReferenceVixen.Core
- AssetReferenceSerializerVixen.Core.Serialization
- AssetTextureSourceTestsVixen.Engine.Renderer.Tests
- CatalogFormatVixen.Assets
- CatalogFormatTestsVixen.Assets.Tests
- CatalogReferenceTestsVixen.Assets.Tests
- ContentCatalogVixen.Assets
- IdentityTestsVixen.Core.Tests
- MeshExtractionTestsVixen.Rendering.Tests
- MetaEnvelopeVixen.Core.Yaml
- MetaScannerVixen.Core.Yaml
- MetaTestsVixen.Core.Yaml.Tests
- PoolingTestsVixen.Core.Tests
- TerrainSplineSpawnerTestsVixen.Rendering.Terrain.Tests
- TypeRegistrationVixen.Core.Yaml
- VfxExtractionTestsVixen.Rendering.Tests
- VirtualGeometryExtractionTestsVixen.Rendering.Tests
- WorldRendererTestsVixen.Engine.Renderer.Tests
- YamlScalarConvertersVixen.Core.Yaml
- AddressableGroupDocumentVixen.Editor.AssetEditors
- AddressableGroupDocumentTestsVixen.Editor.AssetEditors.Tests
- AnimationClipDocumentVixen.Editor.AssetEditors
- AnimationClipImporterTestsVixen.Editor.Assets.Tests
- AnimationGraphCompilerVixen.Editor.AnimationGraph
- AnimationGraphDocumentVixen.Editor.AssetEditors
- AnimationGraphViewVixen.Editor.AssetEditors
- AnimationMotionDataVixen.Editor.AnimationGraph
- AssetDatabaseVixen.Editor.Core
- AssetDatabaseTestsVixen.Editor.Core.Tests
- AssetDrawerVixen.Editor.Inspector
- AssetEditorRegistryVixen.Editor.AssetEditors
- AssetEditorRegistryTestsVixen.Editor.AssetEditors.Tests
- AssetEditorRequestVixen.Editor.AssetEditors
- AssetEntryVixen.Editor.Core
- AssetFieldDropVixen.Editor.App
- AssetGridVixen.Editor.App