ContentBrowser
Reckfell editor's dock for managing files in the project.
Reckfell editor's dock for managing files in the project.
This class is available only in EditorPlugins and can't be instantiated. You can access it using EditorInterface.GetContentBrowser.
While ContentBrowser doesn't expose any methods for file manipulation, it can listen for various file-related signals.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Methods4
AddResourceTooltipPluginvoid
public void AddResourceTooltipPlugin(EditorResourceTooltipPlugin plugin);Registers a new EditorResourceTooltipPlugin.
| Name | Type | Default |
|---|---|---|
plugin | EditorResourceTooltipPlugin | — |
ChangeTreeRoleError
public Error ChangeTreeRole(string path, bool isScene);| Name | Type | Default |
|---|---|---|
path | string | — |
isScene | bool | — |
ErrorNavigateToPathvoid
public void NavigateToPath(string path);Sets the given path as currently selected, ensuring that the selected file/directory is visible.
| Name | Type | Default |
|---|---|---|
path | string | — |
RemoveResourceTooltipPluginvoid
public void RemoveResourceTooltipPlugin(EditorResourceTooltipPlugin plugin);Removes an EditorResourceTooltipPlugin. Fails if the plugin wasn't previously added.
| Name | Type | Default |
|---|---|---|
plugin | EditorResourceTooltipPlugin | — |
Signals and events10
DisplayModeChangedEvent
public event Action DisplayModeChanged;Emitted when the user switches file display mode or split mode.
FileRemovedEvent
public event ContentBrowser.FileRemovedEventHandler FileRemoved;Emitted when the given file was removed.
| Name | Type | Default |
|---|---|---|
file | string | — |
FilesMovedEvent
public event ContentBrowser.FilesMovedEventHandler FilesMoved;Emitted when a file is moved from old_file path to new_file path.
| Name | Type | Default |
|---|---|---|
oldFile | string | — |
newFile | string | — |
FolderColorChangedEvent
public event Action FolderColorChanged;Emitted when folders change color.
FolderMovedEvent
public event ContentBrowser.FolderMovedEventHandler FolderMoved;Emitted when a folder is moved from old_folder path to new_folder path.
| Name | Type | Default |
|---|---|---|
oldFolder | string | — |
newFolder | string | — |
FolderRemovedEvent
public event ContentBrowser.FolderRemovedEventHandler FolderRemoved;Emitted when the given folder was removed.
| Name | Type | Default |
|---|---|---|
folder | string | — |
InheritEvent
public event ContentBrowser.InheritEventHandler Inherit;Emitted when a new scene is created that inherits the scene at file path.
| Name | Type | Default |
|---|---|---|
file | string | — |
InstantiateEvent
public event ContentBrowser.InstantiateEventHandler Instantiate;Emitted when the given scenes are being instantiated in the editor.
| Name | Type | Default |
|---|---|---|
files | string[] | — |
ResourceRemovedEvent
public event ContentBrowser.ResourceRemovedEventHandler ResourceRemoved;Emitted when an external resource had its file removed.
| Name | Type | Default |
|---|---|---|
resource | Resource | — |
SelectionChangedEvent
public event Action SelectionChanged;Emitted when the selection changes. Use EditorInterface.GetSelectedPaths in the connected method to get the selected paths.