study/first_study/Library/PackageCache/com.unity.visualscripting@191c0d7e3b69/Documentation~/vs-self.md
jh04010421 739d49f1a0 Unity | 2026.01.20
수업 실습 파일
2026-01-20 11:01:57 +09:00

18 lines
1.0 KiB
Markdown

# This node
Use a This node to return a GameObject with a Script Machine component that has the Script Graph. If the Script Machine uses a **Graph** source and multiple GameObjects use the same graph, the returned GameObject can change.
Many nodes default their target to **This**. For example, the following Transform nodes are the same:
![Two Transform nodes, one with a This node, and one with a This inline value.](images/vs-this-self-node-example.png)
Not all nodes support the **This** inline value. Any node that doesn't support the **This** inline value displays **None** instead of **This** in the default value field. For example, the Destroy node displays **None**.
In these cases, manually specify the connection if you want to use **This**.
![The Destory node doesn't support an inline This value, so it has to have a This node.](images/vs-this-self-node-example-2.png)
You can use the This node in a graph even if the graph isn't yet assigned to a GameObject. The This node represents the GameObject that owns the graph at runtime.