Notes I took while learning C++.
std::endl; -> No escape code | Adds a new line and flushes the buffer
std::cout << "\n"; -> New line | Recommended in most cases instead of "std::endl"
std::cout << "\t"; -> Horizontal Tab
using UnityEngine; | |
using System.Collections; | |
public static class ColorExt { | |
public static string ToHexString(this Color32 c){ | |
return string.Format ("{0:X2}{1:X2}{2:X2}", c.r, c.g, c.b); | |
} | |
public static string ToHexString(this Color color){ |