Represents a recently accessed item (GameObject, Asset, or Scene) More...
Public Member Functions | |
| bool | IsValid () |
| Checks if the item still exists and is valid. | |
| bool | IsInDifferentScene () |
| Checks if this item is in a different scene than the currently active scene. | |
| void | Select () |
| Selects the item in Unity Editor (hierarchy or project) | |
| void | Open () |
| Opens the item (scripts in editor, scenes in scene view, etc.) | |
| void | OpenScene () |
| Opens a scene with save prompt if needed. | |
| Texture2D | GetIcon () |
| Gets the icon for this item type. | |
Public Attributes | |
| string | name |
| Display name of the item. | |
| string | guid |
| Asset GUID for persistence (assets only) | |
| int | instanceID |
| Instance ID for scene objects (runtime only) | |
| string | scenePath |
| Scene path for GameObjects. | |
| string | sceneName |
| Scene name for display. | |
| string | assetPath |
| Asset path for project assets. | |
| RecentItemType | type |
| Type of item. | |
| long | lastAccessedTicks |
| When the item was last accessed (stored as ticks for JSON serialization) | |
| int | accessCount |
| Number of times accessed. | |
| bool | isPinned |
| Whether item is pinned to top. | |
Properties | |
| DateTime | lastAccessed [get, set] |
| Gets or sets the last accessed time as DateTime. | |
Detailed Description
Represents a recently accessed item (GameObject, Asset, or Scene)
Member Function Documentation
◆ GetIcon()
| Texture2D realvirtual.RecentItem.GetIcon | ( | ) |
Gets the icon for this item type.
◆ IsInDifferentScene()
| bool realvirtual.RecentItem.IsInDifferentScene | ( | ) |
Checks if this item is in a different scene than the currently active scene.
◆ IsValid()
| bool realvirtual.RecentItem.IsValid | ( | ) |
Checks if the item still exists and is valid.
◆ Open()
| void realvirtual.RecentItem.Open | ( | ) |
Opens the item (scripts in editor, scenes in scene view, etc.)
◆ OpenScene()
| void realvirtual.RecentItem.OpenScene | ( | ) |
Opens a scene with save prompt if needed.
◆ Select()
| void realvirtual.RecentItem.Select | ( | ) |
Selects the item in Unity Editor (hierarchy or project)
Member Data Documentation
◆ accessCount
| int realvirtual.RecentItem.accessCount |
Number of times accessed.
◆ assetPath
| string realvirtual.RecentItem.assetPath |
Asset path for project assets.
◆ guid
| string realvirtual.RecentItem.guid |
Asset GUID for persistence (assets only)
◆ instanceID
| int realvirtual.RecentItem.instanceID |
Instance ID for scene objects (runtime only)
◆ isPinned
| bool realvirtual.RecentItem.isPinned |
Whether item is pinned to top.
◆ lastAccessedTicks
| long realvirtual.RecentItem.lastAccessedTicks |
When the item was last accessed (stored as ticks for JSON serialization)
◆ name
| string realvirtual.RecentItem.name |
Display name of the item.
◆ sceneName
| string realvirtual.RecentItem.sceneName |
Scene name for display.
◆ scenePath
| string realvirtual.RecentItem.scenePath |
Scene path for GameObjects.
◆ type
| RecentItemType realvirtual.RecentItem.type |
Type of item.
Property Documentation
◆ lastAccessed
|
getset |
Gets or sets the last accessed time as DateTime.