private void Initialize(string resultTypeName, bool selectingForProjectAsset, IUnifiedContainerPropertyDrawer.SerializedContainer serializedContainer, IEnumerable <IUnifiedContainerPropertyDrawer.SelectableObject> selectableObject) { serializedContainer.SetSelecting(true); _resultTypeName = resultTypeName; _selectingForProjectAsset = selectingForProjectAsset; titleContent = new GUIContent($"Implementing {_resultTypeName} {(_selectingForProjectAsset ? "( project assets only )" : "")}"); _serializedContainer = serializedContainer; _allObjects = new SelectableObjectsHierarchyBuilder().BuildSelectableObjectsList(selectableObject, _serializedContainer.ObjectField, out _selectingProjectAssets); _projectAssets = _allObjects.Where(g => g.IsProjectAsset).ToList(); _sceneAssets = _allObjects.Where(g => !g.IsProjectAsset).ToList(); _projectAssetsExist = _projectAssets.Any(); _sceneAssetsExist = _sceneAssets.Any(); _selectingProjectAssets = (_selectingProjectAssets || _selectingForProjectAsset) || (_projectAssetsExist && !_sceneAssetsExist); _close = false; }