Table of Contents

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

stream Stream
filePath UFile
log ILogger
clearBrokenObjectReferences bool
aliasOccurred bool
yamlMetadata AttachedYamlAssetMetadata
assetNamespace string
expectedType Type

The 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

stream Stream
asset object
yamlMetadata AttachedYamlAssetMetadata
log ILogger
assetNamespace string