public void ClearContents() { if (Sections != null) { foreach (var section in Sections) { section.Clear(); } } GraphVariables.Clear(); }
public void ClearContents() { if (Sections != null) { foreach (var section in Sections) { section.Clear(); } } GraphVariables.Clear(); IGraphModel currentGraphModel = null; if (!(Store.GetState().AssetModel as ScriptableObject)) { title = k_ClassLibraryTitle; subTitle = ""; } else { currentGraphModel = Store.GetState().CurrentGraphModel; title = currentGraphModel.FriendlyScriptName; subTitle = currentGraphModel.Stencil.GetBlackboardProvider().GetSubTitle(); } var blackboardProvider = currentGraphModel?.Stencil.GetBlackboardProvider(); if (m_AddButton != null) { if (blackboardProvider == null || blackboardProvider.CanAddItems == false) { m_AddButton.style.visibility = Visibility.Hidden; } } }