YamlAssetSerializer Class
Namespace: Stride.Core.Assets.Serializers
Assembly: Stride.Core.Assets.dll
Default serializer used for all Yaml content
System.Object →
YamlAssetSerializer
Derived from YamlAssetSerializer:
public class YamlAssetSerializer : IAssetSerializer, IAssetSerializerFactory
Name |
Description |
Methods
|
|
CreateAndProcessMetadata(PropertyContainer, Object, Boolean, ILogger) |
|
|
Load(Stream, UFile, ILogger, Boolean, out Boolean, out AttachedYamlAssetMetadata) |
|
|
Save(Stream, Object, AttachedYamlAssetMetadata, ILogger) |
|
|
TryCreate(String) |
|
|
Improve this Doc
View Source
Methods
public static AttachedYamlAssetMetadata CreateAndProcessMetadata(PropertyContainer yamlPropertyContainer, object deserializedObject, bool clearBrokenObjectReferences, ILogger log = null)
Parameters
Type |
Name |
Description |
PropertyContainer |
yamlPropertyContainer |
|
System.Object |
deserializedObject |
|
System.Boolean |
clearBrokenObjectReferences |
|
ILogger |
log |
|
Returns
public object Load(Stream stream, UFile filePath, ILogger log, bool clearBrokenObjectReferences, out bool aliasOccurred, out AttachedYamlAssetMetadata yamlMetadata)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
Stride.Core.IO.UFile |
filePath |
|
ILogger |
log |
|
System.Boolean |
clearBrokenObjectReferences |
|
System.Boolean |
aliasOccurred |
|
AttachedYamlAssetMetadata |
yamlMetadata |
|
Returns
Type |
Description |
System.Object |
|
public void Save(Stream stream, object asset, AttachedYamlAssetMetadata yamlMetadata, ILogger log = null)
Parameters
TryCreate(String)
public IAssetSerializer TryCreate(string assetFileExtension)
Parameters
Type |
Name |
Description |
System.String |
assetFileExtension |
|
Returns
Extension Methods