Click or drag to resize
Ab4d.SharpEngine logo

MeshGetMetadataT(String) Method

Gets the object that was stored to the specified key by the SetMetadata(String, Object) method. When the key is not found then ArgumentException is thrown. When the metadata with that key cannot be converted to the target type T, then FormatException is thrown. If you are not sure if the key exist or what type its data is, then use the non-generic GetMetadata(String) that returns object or null.

Namespace: Ab4d.SharpEngine.Meshes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public T GetMetadata<T>(
	string key
)

Parameters

key  String
key as string

Type Parameters

T

Return Value

T
object that was stored to the specified key or null if key is not found
See Also