Esempio n. 1
0
 public void OnSolutionLoaded(UnityProjectsCollection solution)
 {
     foreach (var kv in solution.UnityProjectLifetimes)
     {
         OnReferenceAdded(kv.Key, kv.Value);
     }
 }
        public void OnSolutionLoaded(UnityProjectsCollection solution)
        {
            var entry = myBoundStore.Schema.GetScalarEntry((UnitySettings s) => s.EnableShaderLabHippieCompletion);

            myBoundStore.GetValueProperty <bool>(myLifetime, entry, null).Change.Advise(myLifetime, pcea =>
            {
                if (pcea.HasNew)
                {
                    myHost.SetModelData("UNITY_SETTINGS_EnableShaderLabHippieCompletion", pcea.New.ToString());
                }
            });
        }
        public void OnSolutionLoaded(UnityProjectsCollection solution)
        {
            var entry = myBoundStore.Schema.GetScalarEntry((UnitySettings s) => s.EnableShaderLabHippieCompletion);

            myBoundStore.GetValueProperty <bool>(myLifetime, entry, null).Change.Advise(myLifetime, pcea =>
            {
                if (pcea.HasNew)
                {
                    if (mySolutionModel.HasCurrentSolution()) // in tests we don't have one
                    {
                        mySolutionModel.GetCurrentSolution()
                        .CustomData
                        .Data["UNITY_SETTINGS_EnableShaderLabHippieCompletion"] = pcea.New.ToString();
                    }
                }
            });
        }
        void UnityReferencesTracker.IHandler.OnSolutionLoaded(UnityProjectsCollection solution)
        {
            myShellLocks.ExecuteOrQueueReadLockEx(myLifetime, "UnityPluginInstaller.OnSolutionLoaded", () => InstallPluginIfRequired(solution.UnityProjectLifetimes.Keys));

            BindToInstallationSettingChange();
        }