-
Notifications
You must be signed in to change notification settings - Fork 14
Functionality Creator
Functionality Creator is a class that dynamically generates and deletes the necessary prefabs when you toggle functionality in Input Settings. Below is a picture of the class in the inspector. In this scenario the Interaction beam/Hand ray and head gaze cursor have been toggled off.
Here is a picture of the hierarchy with all toggled on, and all toggled off. These game object have been created by FunctionalityCreator.
The fields in InputSettings and the game objects from Functionality Creator are dynamically updated. See examples of different states below.
Below is are two pictures of Input Settings and Functionality Creator with all the functionality enabled.
Hierachry:
Inspector:
Below is a picture of both Input Settings and Functionality Creator with no functionality enabled.
Hierarchy:
Inspector:
The prefabs listed can be found in the prefabs folder of BouvetToolkit. Feel free to add your own prefabs here as long as they keep the same layout.