기술 자료

Unity Engine

Unity Engine

RemoveMetadata(IMetadata)

Removes a specific metadata item from the collection.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: Unity.Localization
  • Assembly: UnityEngine.LocalizationRuntimeModule
public bool RemoveMetadata(IMetadata metadata)

Parameters

metadata

The item to remove.

Returns

Type

Description

bool
true
if the item was present and removed; otherwise,
false
.

Remarks

The item is removed by reference, so pass the same instance that was added.
Remove a previously added metadata item.

Examples

using Unity.Localization;namespace Unity.Localization.Samples{ public class MetadataCollectionRemoveMetadataExample { public bool Run(MetadataCollection metadata, IMetadata item) => metadata.RemoveMetadata(item); }}