Table of Contents

Class AttachedYamlAssetMetadata

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

An interface representing an object that has IYamlAssetMetadata attached to it.

public class AttachedYamlAssetMetadata
Inheritance
AttachedYamlAssetMetadata

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

key PropertyKey<YamlAssetMetadata<T>>

The property key that identifies this type of metadata.

metadata YamlAssetMetadata<T>

The metadata to attach.

Type Parameters

T

The type of metadata being attached.

CopyInto(AttachedYamlAssetMetadata)

public void CopyInto(AttachedYamlAssetMetadata target)

Parameters

target AttachedYamlAssetMetadata

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

Retrieves metadata attached to this object.

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

Parameters

key PropertyKey<YamlAssetMetadata<T>>

The property key that identifies this type of metadata.

Returns

YamlAssetMetadata<T>

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

Type Parameters

T

The type of metadata being attached.