source:
binary-improvements2/7dtd-server-fixes/src/AllocsUtils.cs@
391
Last change on this file since 391 was 391, checked in by , 2 years ago | |
---|---|
File size: 234 bytes |
Rev | Line | |
---|---|---|
[325] | 1 | using UnityEngine; |
[253] | 2 | |
[325] | 3 | namespace AllocsFixes { |
[253] | 4 | public static class AllocsUtils { |
[325] | 5 | public static string ColorToHex (Color _color) { |
[391] | 6 | return $"{(int)(_color.r * 255):X02}{(int)(_color.g * 255):X02}{(int)(_color.b * 255):X02}"; |
[253] | 7 | } |
8 | } | |
[325] | 9 | } |
Note:
See TracBrowser
for help on using the repository browser.