Multiply | Visual Effect Graph | 10.2.2
docs.unity3d.com
    Show / Hide Table of Contents

    Multiply

    Menu Path : Operator > Math > Arithmetic > Multiply

    The Multiply Operator multiplies its inputs and calculates the result. For example an input value of (1, 2) * (3, 4, 5) outputs (3, 8, 5), and an input value of (1, 2) * 3 outputs (3, 6).

    This Operator accepts a number of input values of various types. For the list of types this Operator can use, see Available Types. This Operator interprets any missing input as a value of 1 and always returns a value in the largest vector type of its input. It sees scalar values such as float, int, and uint as the largest vector and uses the value in all the vector's fields.

    Operator properties

    Input Type Description
    Inputs Configurable The value this Operator evaluates.
    Output Type Description
    Out Dependent The result of the first input multiplied by the other inputs.
    The Type changes to match the largest vector type of the Operator's inputs.

    Operator configuration

    To view the Operator’s configuration, click the cog icon in the Operator’s header. You will see a list of inputs that you can reorder, rename, change their type, or delete. The minimum number of inputs is two, there is no maximum. Use the “+” button to add elements. If there are three or more inputs you can use the “-” button to delete the selected input. Use the handle at the left of the input to drag and reorder it.

    The Operator also has an empty input that you can link to add a new input.

    Available types

    You can use the following types for your input ports:

    • float
    • int
    • uint
    • Vector
    • Vector2
    • Vector3
    • Vector4
    • Position
    • Direction
    In This Article
    • Operator properties
    • Operator configuration
      • Available types
    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