docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Operator implicit operator

    implicit operator half4(half)

    Implicitly converts a single half value to a half4 vector by assigning it to every component.

    Declaration
    public static implicit operator half4(half v)
    Parameters
    Type Name Description
    half v

    half to convert to half4

    Returns
    Type Description
    half4

    Converted value.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)