Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    IdentifiableAssetPartReference Class

    Namespace: Stride.Core.Assets.Serializers
    Assembly: Stride.Core.Assets.dll

    An implementation of IAssetPartReference that represents an asset part implementing IIdentifiable.

    System.Object → IdentifiableAssetPartReference
    Derived from IdentifiableAssetPartReference:

    [DataContract]
    [DataStyle(DataStyle.Compact)]
    public class IdentifiableAssetPartReference : IAssetPartReference
    Remarks

    This type is the default type used when is undefined.

    Name Description
    Properties
    Id

    Gets or sets the identifier of the asset part represented by this reference.

    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.

    ToString()
    | Improve this Doc View Source

    Properties


    Id

    Gets or sets the identifier of the asset part represented by this reference.

    public Guid Id { get; set; }
    Property Value
    Type Description
    System.Guid

    InstanceType

    Gets or sets the actual type of object that is being deserialized.

    public 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.

    | Improve this Doc View Source

    Methods


    FillFromPart(Object)

    Fills properties of this object from the actual asset part being referenced.

    public 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.

    public 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.


    ToString()

    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation