Class IdentifiableAssetPartReference
- Namespace
- Stride.Core.Assets.Serializers
- Assembly
- Stride.Core.Assets.dll
An implementation of IAssetPartReference that represents an asset part implementing IIdentifiable.
[DataContract]
[DataStyle(DataStyle.Compact)]
public class IdentifiableAssetPartReference : IAssetPartReference
- Inheritance
-
IdentifiableAssetPartReference
- Implements
Remarks
This type is the default type used when AssetPartReferenceAttribute.ReferenceType is undefined.
Properties
Id
Gets or sets the identifier of the asset part represented by this reference.
public Guid Id { get; set; }
Property Value
InstanceType
Gets or sets the actual type of object that is being deserialized.
public Type InstanceType { get; set; }
Property Value
Remarks
This property is transient and used only during serialization. Therefore, implementations should have the DataMemberIgnoreAttribute set on this property.
Methods
FillFromPart(object)
Fills properties of this object from the actual asset part being referenced.
public void FillFromPart(object assetPart)
Parameters
assetPart
objectThe actual asset part being referenced.
GenerateProxyPart(Type)
Generates a proxy asset part from the information contained in this instance.
public object GenerateProxyPart(Type partType)
Parameters
partType
TypeThe type of asset part to generate.
Returns
- object
A proxy asset part built from this instance.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.