void UnregisterCallbacks(DetachFromPanelEvent evt)
 {
     UnregisterCallback <DetachFromPanelEvent>(UnregisterCallbacks);
     BuilderAssetModificationProcessor.Unregister(this);
     if (m_ThemeManager != null)
     {
         BuilderAssetPostprocessor.Unregister(m_ThemeManager);
     }
 }
Beispiel #2
0
        static BuilderLibraryContent()
        {
            RegenerateLibraryContent();
            BuilderAssetModificationProcessor.Register(new AssetModificationProcessor(() =>
            {
                if (s_ProjectUxmlPathsHash != s_ProjectAssetsScanner.GetAllProjectUxmlFilePathsHash())
                {
                    RegenerateLibraryContent();
                }
            }));

            BuilderAssetPostprocessor.Register(new AssetPostprocessor(() =>
            {
                RegenerateLibraryContent();
            }));
        }
Beispiel #3
0
 void OnDisable()
 {
     BuilderAssetPostprocessor.Unregister(this);
 }
Beispiel #4
0
 void OnEnable()
 {
     BuilderAssetPostprocessor.Register(this);
 }