# GetSelectedImage()

> Retrieves the selected asset which can be of a type of Texture, Sprite, RenderTexture or VectorImage.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.5/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public Object GetSelectedImage()
```

### Returns

| Type                                                            | Description            |
| --------------------------------------------------------------- | ---------------------- |
| [Object](/engine/6000.5/script-reference/unityengine/object.md) | An asset as an object. |
