ContentReferenceSerializer Class
Namespace: Stride.Core.Assets.SerializersAssembly: Stride.Core.Assets.dll
System.Object → Stride.Core.Yaml.Serialization.Serializers.ScalarSerializerBase → Stride.Core.Yaml.AssetScalarSerializerBase →
ContentReferenceSerializer
Derived from ContentReferenceSerializer:
[YamlSerializerFactory(new string[]{"Assets"})]
public class ContentReferenceSerializer : AssetScalarSerializerBase, IYamlSerializable, IYamlSerializableFactory, IDataCustomVisitor
Name | Description | |
---|---|---|
Fields | ||
Default | ||
Methods | ||
CanVisit(Type) | ||
ConvertFrom(ref ObjectContext, Scalar) | ||
ConvertTo(ref ObjectContext) |
Fields
Default
public static readonly ContentReferenceSerializer Default
Field Value
Type | Description |
---|---|
ContentReferenceSerializer |
Methods
CanVisit(Type)
public override bool CanVisit(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Stride.Core.Yaml.AssetScalarSerializerBase.CanVisit(System.Type)
ConvertFrom(ref ObjectContext, Scalar)
public override object ConvertFrom(ref ObjectContext context, Scalar fromScalar)
Parameters
Type | Name | Description |
---|---|---|
Stride.Core.Yaml.Serialization.ObjectContext | context | |
Stride.Core.Yaml.Events.Scalar | fromScalar |
Returns
Type | Description |
---|---|
System.Object |
Overrides
Stride.Core.Yaml.Serialization.Serializers.ScalarSerializerBase.ConvertFrom(Stride.Core.Yaml.Serialization.ObjectContext, Stride.Core.Yaml.Events.Scalar)
ConvertTo(ref ObjectContext)
public override string ConvertTo(ref ObjectContext objectContext)
Parameters
Type | Name | Description |
---|---|---|
Stride.Core.Yaml.Serialization.ObjectContext | objectContext |
Returns
Type | Description |
---|---|
System.String |
Overrides
Stride.Core.Yaml.Serialization.Serializers.ScalarSerializerBase.ConvertTo(Stride.Core.Yaml.Serialization.ObjectContext)
Inherited Members
Stride.Core.Yaml.AssetScalarSerializerBase.TryCreate(Stride.Core.Yaml.Serialization.SerializerContext, Stride.Core.Reflection.ITypeDescriptor)
Stride.Core.Yaml.AssetScalarSerializerBase.Visit(Stride.Core.Reflection.VisitorContext)
Stride.Core.Yaml.Serialization.Serializers.ScalarSerializerBase.ReadYaml(Stride.Core.Yaml.Serialization.ObjectContext)
Stride.Core.Yaml.Serialization.Serializers.ScalarSerializerBase.WriteYaml(Stride.Core.Yaml.Serialization.ObjectContext)
Stride.Core.Yaml.Serialization.Serializers.ScalarSerializerBase.WriteScalar(Stride.Core.Yaml.Serialization.ObjectContext, Stride.Core.Yaml.Serialization.ScalarEventInfo)