Rasagar/Library/PackageCache/com.unity.visualeffectgraph/Documentation~/Operator-Maximum.md
2024-08-26 23:07:20 +03:00

39 lines
2.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Maximum
Menu Path : **Operator > Math > Clamp > Maximum**
The **Maximum** Operator outputs the largest value from all input values.
This Operator accepts input values of various types. For the list of types this Operator can use, see [Available Types](#available-types). This Operator calculates the maximum value by value for Vector types. For scalar values like float, int, or uint, this Operator calculates the maximum between the scalar value and all the vector values.
## Output properties
| **Input** | **Type** | **Description** |
| --------- | --------------------------------------- | ------------------------------------------------------------ |
| **A** | [Configurable](#operator-configuration) | The value this Operator evaluates. If this value is the largest of all the inputs, **Out** becomes this value. |
| **B** | [Configurable](#operator-configuration) | The value this Operator evaluates. If this value is the largest of all the inputs, **Out** becomes this value. |
| **Output** | **Type** | **Description** |
| ---------- | --------- | ------------------------------------------------------------ |
| **Out** | Dependent | The rounded value of the input.<br/>The **Type** changes to match the input type. |
## Operator configuration
To view the Operators configuration, click the **cog** icon in the Operators 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 3 or more inputs, you can use the “-” button to delete the selected input. Use the handle at the left of each input to drag and reorder it.
This node 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**