Exemplo n.º 1
0
        private void Init()
        {
            if (m_Type != null)
            {
                return;
            }

            m_Type  = VariantType.Get(fieldInfo.FieldType);
            m_Hints = new Dictionary <string, int>();
        }
Exemplo n.º 2
0
        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);
        }