Converting int to long


i did this because i couldn’t get anything else to work. I have a button and I can’t make the button input a long, it only inputs int so I did this. how can I just make the button accept a long value

I assume you’re talking about the UnityEvent in the Button inspector. UnityEvent’s have limited values they can provide. Instead, have an intermediary component with the long value, and point your button to a method on said component, then the intermediary component shunts along the message with the appropriate value.

Sidenote, currency in .NET is represented by the decimal data type. Not long.