AssetIdFactory
- Namespace: Turian.Engine.Core
- Source File: AssetIdFactory.cs
Generates deterministic Guid values for child assets derived from a parent (e.g. the materials and textures inside a glTF file). Re-running the importer on the same source produces the same ids, so references in scenes/prefabs survive re-imports.
Public Methods
Derive
public static Guid Derive(Guid parent, string slot)
Derives a v5-style (name-based, SHA-1) Guid from parent and slot. The slot is a stable string token like "material:0" or "image:2".
Parameters:
parent(Guid)slot(string)
Returns: Guid