GameObject Distance Comparator Subgraph (Unity Visual Scripting)
A downloadable subgraph node
This asset requires Unity editor version 2021.2.0b14 or greater and Unity Visual Scripting version 1.7.2 or greater.
This subgraph accepts a List of GameObject and a Distance Source GameObject to compare distance to. It returns a List of GameObject sorted according to distance (closest to farthest) as well as the nearest and farthest GameObjects (individually) from the list.
To Install: Right-click an empty area in your project window. Select Import Package > Custom Package from the context menu. Find and open the GameObject Distance Comparator unitypackage file then click Import on the window that opens.
To Use: Supply a List of GameObject and Distance Source GameObject with the Sort Flow and receive a sorted List of GameObject, Nearest GameObject, and Farthest GameObject with the Sorted output flow.
Status | Released |
Category | Assets |
Author | Munchmo |
Tags | bolt, node, script, super-unit, superunit, Unity, unity3d, visual-scripting, visualscripting |
Download
Click download now to get access to the following files:
Development log
- GameObject Distance ComparatorFeb 24, 2022
Leave a comment
Log in with itch.io to leave a comment.