Table of Contents

Class YamlAssetSerializer

Namespace
Stride.Core.Assets.Serializers
Assembly
Stride.Core.Assets.dll

Default serializer used for all Yaml content

public class YamlAssetSerializer : IAssetSerializer, IAssetSerializerFactory
Inheritance
YamlAssetSerializer
Implements

Methods

CreateAndProcessMetadata(PropertyContainer, object, bool, ILogger)

public static AttachedYamlAssetMetadata CreateAndProcessMetadata(PropertyContainer yamlPropertyContainer, object deserializedObject, bool clearBrokenObjectReferences, ILogger log = null)

Parameters

yamlPropertyContainer PropertyContainer
deserializedObject object
clearBrokenObjectReferences bool
log ILogger

Returns

AttachedYamlAssetMetadata

Load(Stream, UFile, ILogger, bool, out bool, out AttachedYamlAssetMetadata)

public object Load(Stream stream, UFile filePath, ILogger log, bool clearBrokenObjectReferences, out bool aliasOccurred, out AttachedYamlAssetMetadata yamlMetadata)

Parameters

stream Stream
filePath UFile
log ILogger
clearBrokenObjectReferences bool
aliasOccurred bool
yamlMetadata AttachedYamlAssetMetadata

Returns

object

Save(Stream, object, AttachedYamlAssetMetadata, ILogger)

public void Save(Stream stream, object asset, AttachedYamlAssetMetadata yamlMetadata, ILogger log = null)

Parameters

stream Stream
asset object
yamlMetadata AttachedYamlAssetMetadata
log ILogger

TryCreate(string)

public IAssetSerializer TryCreate(string assetFileExtension)

Parameters

assetFileExtension string

Returns

IAssetSerializer