Version: 2018.3 (switch to 2019.1)
LanguageEnglish
  • C#

Color32.ToString

public string ToString();
public string ToString(string format);

Description

Returns a nicely formatted string of this color.

using UnityEngine;

public class Example : MonoBehaviour { void Start() { Color32 color = Color.white; print(color.ToString("x")); } }

Did you find this page useful? Please give it a rating: