> For the complete documentation index, see [llms.txt](https://ashobot.gitbook.io/ultimate-attributes-pack/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ashobot.gitbook.io/ultimate-attributes-pack/folded-infos.md).

# Folded infos

<details>

<summary>AssetPreview</summary>

Displays a folded interractive preview of the game object, the mesh or the image (Sprite, Texture, Texture2D) in the inspector.

**Supported property types**

* GameObject
* Mesh
* Sprite
* Texture
* Texture2D

**Parameters**

* PreviewSize

<mark style="color:purple;">Code Example</mark>

```csharp
using UltimateAttributesPack;

public class AssetPreviewExample : MonoBehaviour
    {
        // AssetPreview attribute displays a interactive preview of a mesh, a gameobject or an image (Sprite, Texture, Texture2D)
        [AssetPreview]
        public Mesh specificMesh;

        // You can also change the size of the preview
        [AssetPreview(PreviewSize.Large)]
        public GameObject specificObject;

        [AssetPreview(PreviewSize.Medium)]
        public Texture specificTexture;
    }
```

<img src="/files/jV6htSl02JT0Y4f9KwHI" alt="" data-size="original">

</details>

<details>

<summary>TransformInfo</summary>

Displays a folded menu with all the values of the Transform in the inspector.

**Supported property types**

* Transform

**Parameters**

* CanModifyValues

<mark style="color:purple;">Code Example</mark>

```csharp
using UltimateAttributesPack;

public class TransformInfoExample : MonoBehaviour
    {
        // If you use TransformInfo attribute, it displays a folfout menu with all the values of the transform
        [TransformInfo]
        public Transform transformValue;

        // You can set the param to true to modify the Transform values in the foldout menu
        [TransformInfo(true)]
        public Transform transformValueModifiable;
    }
```

<img src="/files/Pr1DdnY7fgwHi8SuXJ54" alt="" data-size="original">

</details>

<details>

<summary>RectTransformInfo</summary>

Displays a folded menu with all the values of the RectTransform in the inspector.

**Supported property types**

* RectTransform

**Parameters**

* CanModifyValues

<mark style="color:purple;">Code Example</mark>

<pre class="language-csharp"><code class="lang-csharp">using UltimateAttributesPack;
<strong>
</strong><strong>public class RectTransformInfoExample : MonoBehaviour
</strong>    {
        // If you use RectTransformInfo attribute, it displays a folfout menu with all the values of the RectTransform
        [RectTransformInfo]
        public RectTransform rectTransformValue;

        // You can set the param to true to modify the RectTransform values in the foldout menu
        [RectTransformInfo(true)]
        public RectTransform rectTransformValueModifiable;
    }
</code></pre>

<img src="/files/njloxDditdBLdRL55hBa" alt="" data-size="original">

</details>

***
