Skip to content

Functionality Creator

Adrian Wennberg edited this page Nov 4, 2021 · 3 revisions

Overview

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.

image.png

Here is a picture of the hierarchy with all toggled on, and all toggled off. These game object have been created by FunctionalityCreator.

Dynamically updated

The fields in InputSettings and the game objects from Functionality Creator are dynamically updated. See examples of different states below.

All functionality toggled on

Below is are two pictures of Input Settings and Functionality Creator with all the functionality enabled. Hierachry: image.png

Inspector: image.png

All functionality toggled off

Below is a picture of both Input Settings and Functionality Creator with no functionality enabled. Hierarchy: image.png

Inspector: image.png

Prefabs

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.