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.
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.
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 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.