Randomizer Subgraphs (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.
These subgraphs are used to pick a random item. Two subgraphs are included. One returns a single item chosen randomly from the supplied Aot List. The other returns a single random item chosen from the supplied Aot Dictionary.
To Install: Right-click an empty area in your project window. Select Import Package > Custom Package from the context menu. Find and open the Randomizers unitypackage file then click Import on the window that opens.
Random List Item: Supply the node with an Aot List and it will output a single randomly chosen item. List can be of any type. To easily convert any type of List to an Aot List, use the "Create Aot List (C)" node.
Weighted Randomizer: Supply the node with an Aot Dictionary. Dictionary Key can be of any type and should hold the item you want returned. Dictionary Value should be of type Integer, and denotes the weight (Positive numbers only).
Click download now to get access to the following files:
- Randomizers!Feb 24, 2022
Leave a comment
Log in with itch.io to leave a comment.