Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    AssetReferenceLink Class

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

    Updatable reference link returned by Visit(Object).

    System.Object → AssetReferenceLink
    Derived from AssetReferenceLink:

    public class AssetReferenceLink
    Name Description
    Constructors
    AssetReferenceLink(MemberPath, Object, Func<Nullable<AssetId>, String, Object>)

    Initializes a new instance of the AssetReferenceLink class.

    Fields
    Path

    The path to the member holding this reference.

    Properties
    Reference

    A IReference or Stride.Core.IO.UFile.

    Methods
    UpdateReference(Nullable<AssetId>, String)

    Updates the reference.

    | Improve this Doc View Source

    Constructors


    AssetReferenceLink(MemberPath, Object, Func<Nullable<AssetId>, String, Object>)

    Initializes a new instance of the AssetReferenceLink class.

    public AssetReferenceLink(MemberPath path, object reference, Func<AssetId?, string, object> updateReference)
    Parameters
    Type Name Description
    Stride.Core.Reflection.MemberPath path

    The path.

    System.Object reference

    The reference.

    System.Func<System.Nullable<AssetId>, System.String, System.Object> updateReference

    The update reference.

    | Improve this Doc View Source

    Fields


    Path

    The path to the member holding this reference.

    public readonly MemberPath Path
    Field Value
    Type Description
    Stride.Core.Reflection.MemberPath
    | Improve this Doc View Source

    Properties


    Reference

    A IReference or Stride.Core.IO.UFile.

    public object Reference { get; }
    Property Value
    Type Description
    System.Object
    | Improve this Doc View Source

    Methods


    UpdateReference(Nullable<AssetId>, String)

    Updates the reference.

    public void UpdateReference(AssetId? guid, string location)
    Parameters
    Type Name Description
    System.Nullable<AssetId> guid

    The unique identifier.

    System.String location

    The location.


    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