Files
CartoonRPG/Library/PackageCache/com.unity.visualeffectgraph@2973a8ac1070/Documentation~/Operator-Length.md

30 lines
1.1 KiB
Markdown
Raw Normal View History

2025-06-05 22:59:18 +01:00
# Length
Menu Path : **Operator > Math > Vector**
The **Length** [uniform Operator](Operators.md#uniform-operators) calculates the length of a 1D, 2D, or 3D vector. If you input a Vector4, this Operator ignores the fourth value of the vector.
## Operator properties
| **Input** | **Type** | **Description** |
| --------- | --------------------------------------- | -------------------------------------- |
| **X** | [Configurable](#operator-configuration) | The vector to calculate the length of. |
| **Output** | **Type** | **Description** |
| ---------- | -------- | ------------------------------- |
| **Output** | float | The length of the input vector. |
## Operator configuration
To view this [uniform Operator's](Operators.md#uniform-operators) configuration, click the **cog** icon in the Node's header. Here you can configure the data type this Operator uses.
### Available types
You can use the following types for your **Input values** and ports:
- **Position**
- **Vector**
- **Vector3**
- **Vector2**
- **Float**