Class ContentReferenceSerializer
- Namespace
- Stride.Core.Assets.Serializers
- Assembly
- Stride.Core.Assets.dll
[YamlSerializerFactory(new string[] { "Assets" })]
public class ContentReferenceSerializer : AssetScalarSerializerBase, IYamlSerializable, IYamlSerializableFactory, IDataCustomVisitor
- Inheritance
-
ScalarSerializerBaseAssetScalarSerializerBaseContentReferenceSerializer
- Implements
-
IYamlSerializableIYamlSerializableFactoryIDataCustomVisitor
- Inherited Members
-
AssetScalarSerializerBase.TryCreate(SerializerContext, ITypeDescriptor)AssetScalarSerializerBase.Visit(ref VisitorContext)ScalarSerializerBase.ReadYaml(ref ObjectContext)ScalarSerializerBase.WriteYaml(ref ObjectContext)ScalarSerializerBase.WriteScalar(ref ObjectContext, ScalarEventInfo)
Fields
Default
public static readonly ContentReferenceSerializer Default
Field Value
Methods
CanVisit(Type)
Determines whether this instance can visit the specified object.
public override bool CanVisit(Type type)
Parameters
type
Type
Returns
- bool
true
if this instance can visit the specified object; otherwise,false
.
ConvertFrom(ref ObjectContext, Scalar)
public override object ConvertFrom(ref ObjectContext context, Scalar fromScalar)
Parameters
context
ObjectContextfromScalar
Scalar
Returns
ConvertTo(ref ObjectContext)
public override string ConvertTo(ref ObjectContext objectContext)
Parameters
objectContext
ObjectContext