Description
The OpenRenameFlyout
method is a static method of the Editor.AssetList
class. It is used to open a rename flyout for a specified asset list entry. This method provides a user interface element that allows users to rename an asset directly within the asset list view.
Usage
To use the OpenRenameFlyout
method, you need to pass an instance of Editor.IAssetListEntry
representing the asset you want to rename. Optionally, you can also provide a Vector2
position to specify where the flyout should appear on the screen. If the position is not specified, the flyout will appear at a default location.
Example
// Example usage of OpenRenameFlyout
Editor.IAssetListEntry assetEntry = GetSelectedAssetEntry();
Vector2? flyoutPosition = new Vector2(100, 200);
// Open the rename flyout for the selected asset entry
Editor.AssetList.OpenRenameFlyout(assetEntry, flyoutPosition);