기술 자료

​
​

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
      • 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

Nodes

Use nodes to create the logic and behaviors for your GameObjects.
읽는 시간 3분
최근 업데이트: 10달 전

Nodes are the building blocks of Logic in Unity Studio. Each node represents a specific action, condition, or value in your Logic script.
Drag nodes into your Logic script from the Node Library panel, and connect it to other nodes to create the desired behavior.

Node types

There are multiple types of nodes in Unity Studio that perform different tasks.
Event Listener nodes
Perform a task only when an Event occurs. For example, trigger an action when the user selects a button.
Event nodes
Detect when something happens in your scene. For example, when the user presses a key or when objects collide.
Action nodes
Perform an action. For example, move an object, start an animation, and more.
Flow Control nodes
Control the order of actions and conditions. For example, add loops, if statements, and more.
Operator nodes
Perform operations on values. For example, math calculations, combine text strings, and compare values.
Utility nodes
Perform common tasks. For example, create vectors, add quaternions, debug, and more.
Constant nodes
Use fixed values that don't change while your Logic script runs.

Node shapes

Nodes come in two main shapes - round and square. Each node shape represents a different concept in the Logic Editor.

Round nodes: Expressions

Round nodes are expressions. An expression is something that produces a value. This value can be a number, a color, a GameObject, a true/false result, or any other piece of data. Expressions don’t perform actions, they only give you information or a value you can use.
Use expressions when you need to calculate, retrieve, or provide information that another element of your Logic script needs to use.
The following are examples of expression-type nodes:
  • Outputs the number
    5
    .
  • Gets the position of an object.
  • Checks if the user presses a button and returns
    true
    or
    false
    .

Square nodes: Statements

Square nodes are statements. A statement is an instruction that performs an action or causes something to change in your scene. You can use statements to move an object, start an animation, enable/disable a GameObject, and more.
The following are examples of statement-type nodes:
  • Moves an object to a new position.
  • Plays an animation.
  • Enables or disables a UI element.
Statements don’t return a value, they only perform actions.

Tips for using nodes in the Logic Editor

Use notes

Use notes to explain your logic to teammates or remind yourself what each part does.
To add a note:
  1. Right-click on a node in the Logic Editor.
  2. Select Add Note.
  3. Enter the details of your note.
  4. Click anywhere outside the note to save it.
팁
To reposition the note, click and drag it.

Hide variables

You can change the visibility of variables you don’t want anyone to edit in the Inspector. For example, you might want to hide variables that are only used internally in your Logic script to set a specific color or value.
To change a variable's visibility:
  1. Navigate to the Variables panel.
  2. Select the Eye icon next to the variable you want to hide or show.
When a variable is hidden, it won’t appear in the Inspector panel when you select a GameObject with that Logic script attached.

Check for errors

If a socket has a red outline, it means that you need to fill the slot with another node or a variable. If you don’t fill it, you get an error message in the Bug Notifications panel when you run your application.

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

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

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

  • 보고 있는 페이지
    • Node types

    • Node shapes

      • Round nodes: Expressions

      • Square nodes: Statements

    • Tips for using nodes in the Logic Editor

      • Use notes

      • Hide variables

      • Check for errors


이 페이지의 문제 보고