void RecordOpened()

book_4_sparkGenerated
code_blocksInput

Description

The RecordOpened method is used to notify the asset system that a particular asset has been opened. This action will add the asset to the list of recently opened assets, which can be useful for tracking and quick access in the editor environment.

Usage

Call this method when an asset is opened in the editor to ensure it is recorded in the recent opened list. This is typically handled automatically by the editor when an asset is opened through standard means, but can be manually invoked if needed.

Example

// Example of using RecordOpened method
Editor.Asset myAsset = GetAsset(); // Assume GetAsset() retrieves an asset
myAsset.RecordOpened();

// After calling RecordOpened, the asset will appear in the recent opened list.