docs.unity3d.com
    Show / Hide Table of Contents

    Flip Node

    Description

    Flips the individual channels of input In selected by the Node's parameters. Positive values become negative values and vice versa.

    Ports

    Name Direction Type Binding Description
    In Input Dynamic Vector None Input value
    Out Output Dynamic Vector None Output value

    Controls

    Name Type Options Description
    Red Toggle True, False If true red channel will be flipped.
    Green Toggle True, False If true green channel will be flipped. Disabled if In is Float.
    Blue Toggle True, False If true blue channel will be flipped. Disabled if In is Vector 2 or smaller.
    Alpha Toggle True, False If true alpha channel will be flipped. Disabled if In is Vector 3 or smaller.

    Generated Code Example

    The following example code represents one possible outcome of this node.

    float2 _Flip_Flip = float4(Red, Green, Blue, Alpha);
    
    void Unity_Flip_float4(float4 In, float4 Flip, out float4 Out)
    {
        Out = (Flip * -2 + 1) * In;
    }
    
    In This Article
    • Description
    • Ports
    • Controls
    • Generated Code Example
    Back to top
    Terms of use
    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