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
PropertyContainerdeserializedObject
objectclearBrokenObjectReferences
boollog
ILogger
Returns
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
StreamfilePath
UFilelog
ILoggerclearBrokenObjectReferences
boolaliasOccurred
boolyamlMetadata
AttachedYamlAssetMetadata
Returns
Save(Stream, object, AttachedYamlAssetMetadata, ILogger)
public void Save(Stream stream, object asset, AttachedYamlAssetMetadata yamlMetadata, ILogger log = null)
Parameters
stream
Streamasset
objectyamlMetadata
AttachedYamlAssetMetadatalog
ILogger
TryCreate(string)
public IAssetSerializer TryCreate(string assetFileExtension)
Parameters
assetFileExtension
string