Playmaker Forum

PlayMaker Feedback => Action Requests => Topic started by: ssk9208 on May 11, 2015, 06:42:58 AM

Title: Int to Hexadecimal and Hexadecimal to Int
Post by: ssk9208 on May 11, 2015, 06:42:58 AM
Hello,
Can someone create a couple of action to convert Int to Hexadecimal and Hexadecimal to Int?
Title: Re: Int to Hexadecimal and Hexadecimal to Int
Post by: Lane on May 11, 2015, 07:13:29 AM
Are you looking for RGB / Color data?

Found some code here I can probably put together for an action.
http://wiki.unity3d.com/index.php?title=HexConverter
Title: Re: Int to Hexadecimal and Hexadecimal to Int
Post by: ssk9208 on May 12, 2015, 01:14:26 PM
Are you looking for RGB / Color data?

Found some code here I can probably put together for an action.
http://wiki.unity3d.com/index.php?title=HexConverter

I just need to display an int as hexadecimal. That is a feature of the game. :)
Very thankful if you can create an action.
Title: Re: Int to Hexadecimal and Hexadecimal to Int
Post by: jeanfabre on May 13, 2015, 06:37:15 AM
Hi,

 It's already available using "ConvertIntToString" action.

put "X4" as format.

https://msdn.microsoft.com/en-us/library/dwhawy9k.aspx#XFormatString

Bye,

 Jean