IAssetPartReference Interface
Namespace: Stride.Core.Assets.SerializersAssembly: Stride.Core.Assets.dll
An interface representing a reference to an asset part that is used for serialization.
public interface IAssetPartReference
              | Name | Description | |
|---|---|---|
| Properties | ||
| InstanceType | Gets or sets the actual type of object that is being deserialized.  | 
                          |
| Methods | ||
| FillFromPart(Object) | Fills properties of this object from the actual asset part being referenced.  | 
                          |
| GenerateProxyPart(Type) | Generates a proxy asset part from the information contained in this instance.  | 
                          |
Properties
InstanceType
Gets or sets the actual type of object that is being deserialized.
Type InstanceType { get; set; }
              Property Value
| Type | Description | 
|---|---|
| System.Type | 
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.
void FillFromPart(object assetPart)
              Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | assetPart | The actual asset part being referenced.  | 
                  
GenerateProxyPart(Type)
Generates a proxy asset part from the information contained in this instance.
object GenerateProxyPart(Type partType)
              Parameters
| Type | Name | Description | 
|---|---|---|
| System.Type | partType | The type of asset part to generate.  | 
                  
Returns
| Type | Description | 
|---|---|
| System.Object | A proxy asset part built from this instance.  |