Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    AttachedYamlAssetMetadata Class

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

    An interface representing an object that has Stride.Core.Assets.Yaml.IYamlAssetMetadata attached to it.

    System.Object → AttachedYamlAssetMetadata
    Derived from AttachedYamlAssetMetadata:

    public class AttachedYamlAssetMetadata
    Name Description
    Methods
    AttachMetadata<T>(PropertyKey<YamlAssetMetadata<T>>, YamlAssetMetadata<T>)

    Attaches metadata to this object.

    CopyInto(AttachedYamlAssetMetadata)
    RetrieveMetadata<T>(PropertyKey<YamlAssetMetadata<T>>)

    Retrieves metadata attached to this object.

    | Improve this Doc View Source

    Methods


    AttachMetadata<T>(PropertyKey<YamlAssetMetadata<T>>, YamlAssetMetadata<T>)

    Attaches metadata to this object.

    public void AttachMetadata<T>(PropertyKey<YamlAssetMetadata<T>> key, YamlAssetMetadata<T> metadata)
    Parameters
    Type Name Description
    PropertyKey<YamlAssetMetadata<T>> key

    The property key that identifies this type of metadata.

    YamlAssetMetadata<T> metadata

    The metadata to attach.

    Type Parameters
    Name Description
    T

    The type of metadata being attached.


    CopyInto(AttachedYamlAssetMetadata)

    public void CopyInto(AttachedYamlAssetMetadata target)
    Parameters
    Type Name Description
    AttachedYamlAssetMetadata target

    RetrieveMetadata<T>(PropertyKey<YamlAssetMetadata<T>>)

    Retrieves metadata attached to this object.

    public YamlAssetMetadata<T> RetrieveMetadata<T>(PropertyKey<YamlAssetMetadata<T>> key)
    Parameters
    Type Name Description
    PropertyKey<YamlAssetMetadata<T>> key

    The property key that identifies this type of metadata.

    Returns
    Type Description
    YamlAssetMetadata<T>

    The corresponding metadata attached to this object, or null if it couldn't be found.

    Type Parameters
    Name Description
    T

    The type of metadata being attached.


    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