# C++ - UFunction - Add Click to Expand and Collapse Pins

**URL:** <https://forums.unrealengine.com/t/c-ufunction-add-click-to-expand-and-collapse-pins/754104>\
**Category:** C++\
**Tags:** ufunction, unreal-engine, c, nodes\
**Created:** [January 21, 2023, 11:35am UTC](https://forums.unrealengine.com/t/c-ufunction-add-click-to-expand-and-collapse-pins/754104 "2023-01-21T11:35:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Salvo\_Nostrato](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Salvo\_Nostrato](https://forums.unrealengine.com/u/Salvo_Nostrato)\
**Post date:** [January 21, 2023, 11:35am UTC](https://forums.unrealengine.com/t/c-ufunction-add-click-to-expand-and-collapse-pins/754104/1 "2023-01-21T11:35:28Z")

</div>

Hi there,

I was looking around how to add to a custom node a way to expand end collapse the pins but I cannot find anything around.

![Screenshot 2023-01-21 123504](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/3/9/439edd3507d06c2d2ad0a16dab82048c818341ab.png)  
For example like the Print Text node does.

Is this something that goes inside UFUNCTION?

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [January 21, 2023, 4:48pm UTC](https://forums.unrealengine.com/t/c-ufunction-add-click-to-expand-and-collapse-pins/754104/2 "2023-01-21T16:48:57Z")

</div>

In the ufunction declare AdvancedDisplay=N

from source you can see AdvancedDisplay = “2” so it shows 2 lines by default, expand the rest.

```auto
UFUNCTION(BlueprintCallable, meta=(WorldContext="WorldContextObject", CallableWithoutWorldContext, Keywords = "log", AdvancedDisplay = "2", DevelopmentOnly), Category="Development")

```
