playMaker

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

ssk9208

  • Playmaker Newbie
  • *
  • Posts: 16
Int to Hexadecimal and Hexadecimal to Int
« 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?

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Int to Hexadecimal and Hexadecimal to Int
« Reply #1 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
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

ssk9208

  • Playmaker Newbie
  • *
  • Posts: 16
Re: Int to Hexadecimal and Hexadecimal to Int
« Reply #2 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.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Int to Hexadecimal and Hexadecimal to Int
« Reply #3 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