Singleton 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.
A singleton restricts the instantiation of a GameObject to one "single" instance that persists between scenes. This is useful when exactly one GameObject is needed to coordinate actions across the project. Example uses are for inventory tracking, sound managers, player characters, etc.
To Install:
Right-click an empty area in your project window. Select Import Package > Custom Package from the context menu. Find and open the Singleton unitypackage file then click Import on the window that opens.
To Use:
Attach to On Start Event node of GameObject that you want to become a singleton.
*Uses an App variable named the same as the GameObject running this Subgraph, which it creates during play if it doesn't already exist.
Status | Released |
Category | Assets |
Rating | Rated 5.0 out of 5 stars (1 total ratings) |
Author | Munchmo |
Made with | Unity |
Tags | bolt, node, script, super-unit, superunit, Unity, unity3d, visual-scripting, visualscripting |
Code license | GNU General Public License v3.0 (GPL) |
Asset license | Creative Commons Attribution_ShareAlike v4.0 International |
Download
Click download now to get access to the following files:
Development log
- First Subgraph OfferingJan 28, 2022
Leave a comment
Log in with itch.io to leave a comment.