Beispiel #1
0
 internal static bool TryGetValue(string fullTypeName, out Func <IUxmlAttributes, CreationContext, VisualElement> factory)
 {
     Factories.DiscoverFactories();
     factory = null;
     return(Factories.s_Factories != null && Factories.s_Factories.TryGetValue(fullTypeName, out factory));
 }
Beispiel #2
0
 internal static void RegisterFactory(string fullTypeName, Func <IUxmlAttributes, CreationContext, VisualElement> factory)
 {
     Factories.DiscoverFactories();
     Factories.s_Factories.Add(fullTypeName, factory);
 }