AttachedYamlAssetMetadata Class
Namespace: Stride.Core.Assets.YamlAssembly: 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. |
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. |