Google. Maps. Unity. MetadataRegisterCore< T >
Associate metadata objects with target objects.
Summary
Public functions |
|
---|---|
AddMetadata(T target, System.Object metadataObj)
|
void
Add a metadata object to a given target object of type T.
|
GetMetadata< MT >(T target)
|
IEnumerable< MT >
Enumerates all of the metadata objects of type MT that are associated with the given target object of type T. Respects subtyping.
|
GetObjectsByMetadataType< MT >()
|
IEnumerable< T >
Enumerate all of the target objects containing one or more metadata objects of the given type. Respects subtyping.
|
RemoveMetadata(T target, System.Object metadataObj)
|
void
Remove a metadata object from a target object.
|
RemoveMetadataByGameObject(T target)
|
void
Clear all metadata for given target object.
|
Public functions
AddMetadata
void AddMetadata( T target, System.Object metadataObj )
Add a metadata object to a given target object of type T.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
GetMetadata< MT >
IEnumerable< MT > GetMetadata< MT >( T target )
Enumerates all of the metadata objects of type MT that are associated with the given target object of type T. Respects subtyping.
Details | |||
---|---|---|---|
Parameters |
|
||
Template Parameters |
|
GetObjectsByMetadataType< MT >
IEnumerable< T > GetObjectsByMetadataType< MT >()
Enumerate all of the target objects containing one or more metadata objects of the given type. Respects subtyping.
Details | |||
---|---|---|---|
Template Parameters |
|
RemoveMetadata
void RemoveMetadata( T target, System.Object metadataObj )
Remove a metadata object from a target object.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Exceptions |
|
RemoveMetadataByGameObject
void RemoveMetadataByGameObject( T target )
Clear all metadata for given target object.
Details | |||
---|---|---|---|
Parameters |
|