title: Unity. How to use Color.RGBToHSV() in Unity c#
body: <p>[Learning English] I did not find Unity examples of using RGBToHSV(). I'm trying different code combinations but I do not know how to use properly RGBToHSV(). I try to use just the function but do not work. In Unity documentation and forum there is no example. Do I need to add Color to the function first? also I try <em>myColor = to Color.RGBToHSV(...)</em> but is not working. How is the correct way to use RGBToHSV() function?</p>
  
  <pre><code>// Declaration
  public float hue { get; set; }
  float S, V;
  
  Color.RGBToHSV (actualRGBColor, out hue, out S, out V);
  </code></pre>
  
  <p>But err: A property or indexer GetSetColor.hue may not be passed as <code>ref' or</code>out' parameter.</p>
  
  <p><strong>How to use properly Color.RGBToHSV() in Unity c# ?</strong></p>