Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    AttachedReference Class

    Namespace: Stride.Core.Serialization
    Assembly: Stride.Core.Serialization.dll

    Stores the object reference information, so that it is easy to work on partially loaded or CPU version of assets with ContentManager.

    System.Object → AttachedReference
    Derived from AttachedReference:

    public class AttachedReference : IReference
    Name Description
    Fields
    Data

    Data representation (useful if your object is a GPU object but you want to manipulate a CPU version of it). This needs to be manually interpreted by a custom DataSerializer<T> implementation.

    Id

    The asset unique identifier.

    IsProxy

    If yes, this object won't be recursively saved in a separate chunk by ContentManager. Use this if you only care about the Url reference.

    Url

    The asset URL of the referenced data.

    Methods
    ToString()
    Explicit Interface Implementations
    IReference.Id
    IReference.Location
    | Improve this Doc View Source

    Fields


    Data

    Data representation (useful if your object is a GPU object but you want to manipulate a CPU version of it). This needs to be manually interpreted by a custom DataSerializer<T> implementation.

    public object Data
    Field Value
    Type Description
    System.Object

    Id

    The asset unique identifier.

    public AssetId Id
    Field Value
    Type Description
    AssetId

    IsProxy

    If yes, this object won't be recursively saved in a separate chunk by ContentManager. Use this if you only care about the Url reference.

    public bool IsProxy
    Field Value
    Type Description
    System.Boolean

    Url

    The asset URL of the referenced data.

    public string Url
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    Methods


    ToString()

    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()
    | Improve this Doc View Source

    Explicit Interface Implementations


    IReference.Id

    AssetId IReference.Id { get; }
    Returns
    Type Description
    AssetId

    IReference.Location

    string IReference.Location { get; }
    Returns
    Type Description
    System.String

    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