Class ColorHelper | Unity Reflect | 1.3.0-preview.104
docs.unity3d.com
    Show / Hide Table of Contents

    Class ColorHelper

    Inheritance
    Object
    ColorHelper
    Namespace: UnityEngine.Reflect
    Syntax
    public static class ColorHelper

    Methods

    CalculateAverageColor(Renderer, Int32, Int32)

    Declaration
    public static Color CalculateAverageColor(Renderer renderer, int precision = 1, int materialWithTextureBias = 1)
    Parameters
    Type Name Description
    Renderer renderer
    Int32 precision
    Int32 materialWithTextureBias
    Returns
    Type Description
    Color

    ReadColor(NativeArray<Byte>, TextureFormat, Int32, ref Color)

    Declaration
    public static void ReadColor(NativeArray<byte> bytes, TextureFormat format, int colorIndex, ref Color color)
    Parameters
    Type Name Description
    NativeArray<Byte> bytes
    TextureFormat format
    Int32 colorIndex
    Color color

    WriteColor(NativeArray<Byte>, TextureFormat, Int32, Color)

    Declaration
    public static void WriteColor(NativeArray<byte> bytes, TextureFormat format, int colorIndex, Color color)
    Parameters
    Type Name Description
    NativeArray<Byte> bytes
    TextureFormat format
    Int32 colorIndex
    Color color
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023