PlayMaker Feedback > Action Requests
Get Color Variable's Hex Value as a String?[SOLVED]
westingtyler:
Hello. I need this. I know that 'Set Hex Color' is an action, but I need one to GET it from a color variable. Thank you!
Basically, my FSM has color variables you can set, then at runtime it needs to build the tags and instert them into strings, to display the colors in a Text Mesh Pro.
Fat Pug Studio:
Unity has a neat function for that called ToHtmlStringRGBA, so i might make an action, but i will be unable to in the next following days.
Fat Pug Studio:
No need for action actually. Here you go.
If you need # before the string, use build string to add it. If you need only RGB without alpha, omit A from method name.
Broken Stylus:
Ah very nice!
But... you coded. :'(
Broken Stylus:
Tested the TryParseHtmlString static method; doesn't work.
In the code example it parses a string variable but looks like it may be wanting something like a htmlString (wut???) or isn't happy with parsing a FsmString...
Navigation
[0] Message Index
[#] Next page
Go to full version