Description
The OnDoubleClicked
method is a virtual, sealed method in the Editor.DirectoryEntry
class. It is invoked when a directory entry is double-clicked within the editor. This method is designed to handle the double-click event and perform actions such as opening the directory or displaying its contents.
Usage
To use the OnDoubleClicked
method, you need to have an instance of the Editor.DirectoryEntry
class. This method takes a single parameter of type Editor.AssetList
, which represents the list of assets associated with the directory entry. The method returns a Boolean
value indicating whether the double-click action was successfully handled.
Example
// Example usage of OnDoubleClicked method
Editor.DirectoryEntry directoryEntry = new Editor.DirectoryEntry();
Editor.AssetList assetList = new Editor.AssetList();
bool result = directoryEntry.OnDoubleClicked(assetList);
if (result)
{
// The double-click action was successfully handled
// Perform additional actions if necessary
}
else
{
// Handle the case where the double-click action was not successful
}