Last change
on this file since 393 was 325, checked in by alloc, 6 years ago |
Code style cleanup (mostly whitespace changes, enforcing braces, using cleanup)
|
File size:
265 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) {
|
---|
| 6 | return string.Format ("{0:X02}{1:X02}{2:X02}", (int) (_color.r * 255), (int) (_color.g * 255),
|
---|
| 7 | (int) (_color.b * 255));
|
---|
[253] | 8 | }
|
---|
| 9 | }
|
---|
[325] | 10 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.