playMaker

Author Topic: Int to Hexadecimal and Hexadecimal to Int  (Read 1409 times)

ssk9208

  • Playmaker Newbie
  • *
  • Posts: 16
    • View Profile
Int to Hexadecimal and Hexadecimal to Int
« on: May 11, 2015, 03:42:58 AM »
Hello,
Can someone create a couple of action to convert Int to Hexadecimal and Hexadecimal to Int?

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2488
  • Yup.
    • View Profile
    • Cleverous
Re: Int to Hexadecimal and Hexadecimal to Int
« Reply #1 on: May 11, 2015, 04: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

ssk9208

  • Playmaker Newbie
  • *
  • Posts: 16
    • View Profile
Re: Int to Hexadecimal and Hexadecimal to Int
« Reply #2 on: May 12, 2015, 10:14:26 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

I just need to display an int as hexadecimal. That is a feature of the game. :)
Very thankful if you can create an action.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14593
  • Official Playmaker Support
    • View Profile
Re: Int to Hexadecimal and Hexadecimal to Int
« Reply #3 on: May 13, 2015, 03: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