void RenameAsset()

robot_2Generated
code_blocksInput

Description

The RenameAsset method in the Editor.AssetList class is used to initiate the renaming process for a selected asset within the asset list. This method is typically triggered by a user action, such as pressing a shortcut key.

Usage

To use the RenameAsset method, ensure that an asset is selected in the asset list. The method can be invoked programmatically or through the designated shortcut key, which is F2 by default. This will open a text input field allowing the user to enter a new name for the asset.

Example

// Example of using the RenameAsset method

// Assuming 'assetList' is an instance of Editor.AssetList
assetList.RenameAsset();

// This will trigger the renaming process for the currently selected asset in the asset list.