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