using System; using UnityEngine.Localization.Metadata; using UnityEngine.Localization.SmartFormat.Core.Extensions; using UnityEngine.Localization.SmartFormat.PersistentVariables; [Metadata(AllowedTypes = MetadataType.StringTableEntry)] [Serializable] public class ItemGender : IMetadata, IMetadataVariable { public enum Gender { None, Female, Male } public Gender gender = Gender.None; /// /// The name used to identify this metadata. /// public string VariableName => "gender"; /// /// Returns the value of . /// /// /// public object GetSourceValue(ISelectorInfo _) => gender; }