I need to convert an integer value, for example 100, to a hex value of 0x0000064 with a variable type of uint. In C# I am manually assigning this hex value:
uint id = 0x0000064;
I'd like a function that can take the integer input and output the uint hex version with the prefix. I've tried building it up out of strings but then I can't assign that string to a uint type variable. Any C# methods I've tried will just convert the hex value back to the integer. Any ideas? Or am I missing something really obvious? Thank you!