public CompareTagUnknownTagAnalyzer(UnityApi unityApi, AssetSerializationMode assetSerializationMode, YamlSupport unityYamlSupport) : base(unityApi) { myAssetSerializationMode = assetSerializationMode; myUnityYamlSupport = unityYamlSupport; }
public LayerMaskAnalyzer([NotNull] UnityApi unityApi, AssetSerializationMode assetSerializationMode, YamlSupport unityYamlSupport) : base(unityApi) { myAssetSerializationMode = assetSerializationMode; myUnityYamlSupport = unityYamlSupport; }
public PlayAnimatorStateAnalyzer([NotNull] UnityApi unityApi, [NotNull] AssetSerializationMode assetSerializationMode, [NotNull] YamlSupport unityYamlSupport) : base(unityApi) { myAssetSerializationMode = assetSerializationMode; myUnityYamlSupport = unityYamlSupport; }
public UnityYamlSupport(Lifetime lifetime, YamlSupport yamlSupport, SolutionCaches solutionCaches, ISolution solution, ISettingsStore settingsStore) { var settings = settingsStore.BindToContextLive(lifetime, ContextRange.ManuallyRestrictWritesToOneContext(solution.ToDataContext())); IsUnityYamlParsingEnabled = settings.GetValueProperty(lifetime, (UnitySettings key) => key.IsYamlParsingEnabled); if (!yamlSupport.IsParsingEnabled.Value) { IsUnityYamlParsingEnabled.Value = false; } IsUnityYamlParsingEnabled.Change.Advise(lifetime, v => { if (v.HasNew && v.New) { yamlSupport.IsParsingEnabled.Value = true; if (v.HasOld) { solutionCaches.PersistentProperties[UnityYamlDisableStrategy.SolutionCachesId] = false.ToString(); } } }); }
public UnityYamlSupport(Lifetime lifetime, YamlSupport yamlSupport, ISolution solution, ISettingsStore settingsStore) { var settings = settingsStore.BindToContextLive(lifetime, ContextRange.ManuallyRestrictWritesToOneContext(solution.ToDataContext())); IsUnityYamlParsingEnabled = settings.GetValueProperty(lifetime, (UnitySettings key) => key.IsYamlParsingEnabled); if (!yamlSupport.IsParsingEnabled.Value) { IsUnityYamlParsingEnabled.Value = false; } IsUnityYamlParsingEnabled.Change.Advise(lifetime, v => { if (v.HasNew && v.New) { yamlSupport.IsParsingEnabled.Value = true; if (v.HasOld) { settings.SetValue((UnitySettings key) => key.ShouldApplyYamlHugeFileHeuristic, false); } } }); }
public AssetIndexingSupport(Lifetime lifetime, YamlSupport yamlSupport, SolutionCaches solutionCaches, ISolution solution, SolutionWideWritableContextBoundSettingsStore settingsStore) { IsEnabled = settingsStore.BoundSettingsStore.GetValueProperty(lifetime, (UnitySettings key) => key.IsAssetIndexingEnabled); if (!yamlSupport.IsParsingEnabled.Value) { IsEnabled.Value = false; } IsEnabled.Change.Advise(lifetime, v => { if (v.HasNew && v.New) { yamlSupport.IsParsingEnabled.Value = true; if (v.HasOld) { solutionCaches.PersistentProperties[UnityYamlDisableStrategy.SolutionCachesId] = false.ToString(); } } }); }
public UnityYamlProjectFileLanguageService(YamlSupport yamlSupport) : base(UnityYamlProjectFileType.Instance) { myYamlSupport = yamlSupport; }
public UnityYamlProjectFileLanguageServiceTest(YamlSupport yamlSupport) : base(yamlSupport) { }