Class AssetLocation
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
Defines a complete path to an assets, including it's domain.
[TypeConverter(typeof(StringAssetLocationConverter))]
[ProtoContract]
public class AssetLocation
- Inheritance
-
AssetLocation
Examples
In JSON assets, asset locations are represented as single strings in the form "domain:path". To access an asset in the vanilla game, use the domain 'game'.
"code": "game:vegetable-cookedcattailroot",