기술 자료

​
​

Development

User Acquisition

Monetization

산업 분야

Unity Studio

Open Unity Studio

Unity Studio

이 페이지는 선택한 언어로 제공되지 않습니다.
​
​
Unity Studio
  • What's new in Unity Studio
  • Introduction to Unity Studio
  • Launch Unity Studio
  • Create your first Unity Studio project
  • Develop with Unity Studio
    • The Unity Studio interface
    • Save your progress
    • GameObjects
    • Assets
    • Materials
    • Scene settings
    • Logic
      • Introduction to Logic
      • Create a Logic script
      • The Logic Editor interface
      • Methods, variables, and parameters
      • Nodes
        • Event Listener nodes
        • Event nodes
        • Action nodes
        • Constant nodes
        • Flow Control nodes
        • Operator nodes
        • Utility nodes
          • Math node
          • Quaternion node
          • Vector2 node
          • Vector3 node
          • Vector4 node
          • Float node
          • Int node
          • Physics node
          • Input node
          • Time node
          • Random node
          • Cursor node
          • Debug node
          • Convert node
      • Logic examples
    • The UI Creator
    • Animation
    • AI features
  • Collaborate in Unity Studio
  • Export drafts to the Unity Editor
  • Publish and share
  • Troubleshooting Unity Studio issues
  • Report bugs and share feedback
  • Manage your analytics and marketing preferences
  1. Unity Studio
  2. Develop with Unity Studio
  3. Logic
  4. Nodes
  5. Utility nodes

Vector2 node

Use the Vector2 node to access preset 2D vector variables and common methods.
읽는 시간 2분
최근 업데이트: 6달 전

The Vector2 node is a 2D vector toolbox for positions and directions (X, Y).
Typical uses:
  • Measure distance/length on a 2D plane (for example, UI movement).
  • Normalize directions and blend or scale them.
  • Access common vectors like zero and one.

Variables

Expand the Vector2 node to access the following preset variables:

Variable

Type

Description

down
Vector2
A vector pointing in the downward direction (0, -1).
left
Vector2
A vector pointing in the left direction (-1, 0).
one
Vector2
A vector with all components set to 1 (1, 1).
right
Vector2
A vector pointing in the right direction (1, 0).
up
Vector2
A vector pointing in the upward direction (0, 1).
zero
Vector2
A vector with all components set to 0 (0, 0).

Methods

Expand the Vector2 node to access the following methods:

Method

Return type

Description

Angle
float
The angle in degrees between two vectors, measured from the first vector to the second vector. The result is always between 0 and 180 degrees.
Distance
float
The distance between two points in 2D space.
Dot
float
The dot product of two vectors, which is a measure of how much one vector goes in the direction of another. You can use it to determine the angle between two vectors or to project one vector onto another.
Lerp
Vector2
A linear interpolation between two vectors based on a given interpolation factor (t). When t is 0, the result is the first vector. When t is 1, the result is the second vector. When t is between 0 and 1, the result is a blend of the two vectors.
Max
Vector2
A vector that contains the maximum value of each component from two vectors.
Min
Vector2
A vector that contains the minimum value of each component from two vectors.
Scale
Vector2
Use to scale one vector by another, for example, to apply a non-uniform scale to a position or direction.

Additional resources

  • Unity Engine - Vector2
  • Utility nodes

Copyright © 2026 Unity Technologies
법률 정보개인정보 처리방침쿠키Documentation Terms of Use개인 정보 판매 또는 공유 금지개인정보 보호 선택(쿠키 설정)

'Unity', Unity 로고 및 기타 Unity 상표는 미국 및 기타 지역 내 Unity Technologies 또는 그 계열사의 상표 또는 등록상표입니다(자세한 내용은 여기에서 확인하세요). 기타 명칭 또는 브랜드는 해당 소유자의 상표입니다.

일부 페이지는 편의를 위해 기계 번역되었으며 부정확한 내용이 있을 수 있습니다. 정보가 상충되는 경우, 영어 버전을 우선으로 참조하세요.

  • 보고 있는 페이지
    • Variables

    • Methods

    • Additional resources


이 페이지의 문제 보고