Firstborn/Library/PackageCache/com.unity.visualscripting@1.../Documentation~/vs-self.md
Schaken-Mods 9092858a58 updated to the latest editor
I updated everything to the latest Unity Editor. Also realized I had the wrong shaders on my hairs, those are fixed and the hairs look MUCH better!
2023-05-07 17:43:11 -05:00

18 lines
898 B
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 an **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:
![](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**.
![](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.