How to use a "Data" output?

Hi,

How does one use the “data” outputs on some of the units? For example, how to use the collision data that’s being output by On Collision Enter 2D? Or the “TileData” from the Get Tile Data unit?

7524725--928565--data1.png 7524725--928568--data2.png

I know how to use them in c#, but I can’t find any built-in unit able to deal with these outputs. Are these exposed in case one wants to create their own unit and use it as an input?

Thanks.

UnityVS by default exposes only the most commonly used types to keep search times reasonable. You can try searching for more niche types in Project Settings/Visual Scripting in the Types list by adding a new item there and then regenerate nodes. If it’s a public property or struct, UnityVS can access it via reflection.

1 Like

Great! That worked. Thanks a bunch PanthenEye.