private void Init() { if (m_Type != null) { return; } m_Type = VariantType.Get(fieldInfo.FieldType); m_Hints = new Dictionary <string, int>(); }
private static VariantType Make(Type type) { var variantType = PropertyDrawerHelper.GetTargetType(type); if (!s_VariantCache.TryGetValue(variantType, out var entry)) { entry = new VariantType(variantType); s_VariantCache[variantType] = entry; } return(entry); }