Interface IAssetSerializer
- Namespace
- Stride.Core.Assets.Serializers
- Assembly
- Stride.Core.Assets.dll
public interface IAssetSerializer
- Extension Methods
Methods
Load(Stream, UFile, ILogger?, bool, out bool, out AttachedYamlAssetMetadata, string?, Type?)
object Load(Stream stream, UFile filePath, ILogger? log, bool clearBrokenObjectReferences, out bool aliasOccurred, out AttachedYamlAssetMetadata yamlMetadata, string? assetNamespace = null, Type? expectedType = null)
Parameters
streamStreamThe stream containing the serialized asset.
filePathUFileThe path of the asset file.
logILoggerThe logger, if available.
clearBrokenObjectReferencesboolWhether to clear broken object references.
aliasOccurredboolReceives whether an alias was encountered.
yamlMetadataAttachedYamlAssetMetadataReceives the asset's YAML metadata.
assetNamespacestringThe namespace used to resolve asset types.
expectedTypeTypeThe type the caller expects (Asset, Package). The file's own type tag wins; this is what an asset whose type is not loaded falls back to, so it can be read as an unloadable one.
Returns
- object
Save(Stream, object, AttachedYamlAssetMetadata?, ILogger?, string?)
void Save(Stream stream, object asset, AttachedYamlAssetMetadata? yamlMetadata, ILogger? log = null, string? assetNamespace = null)
Parameters
streamStreamassetobjectyamlMetadataAttachedYamlAssetMetadatalogILoggerassetNamespacestring