A UIVisibilityController for Seth Robinson's GPTAvatar.
This is an extension for the wonderful software GPTAvatar created by Seth Robinson, https://github.com/SethRobinson/GPTAvatar. GPTAvatar is a free open-source software that allows creating AI-based avatars with Unity.
The class UIVisibilityController is part of Maximilian C. Fink's OKAPILabExtensions for GPTAvatar. The class allows to hide/show the buttons/labels with a "GUI on/off" Button. This extension can be used in experimental settings where participant's should not see the full GUI all the time. It should work on the desktop version of GPTAvatar, but potentially also on its WebGL version.
To use this extension, the following steps have to be done
- Copy this file in Unity somehwere under your assets (e.g., in a separate folder OKAPILabExtensions)
- Click in the Unity hierarchy on "Canvas" and open the child object "Panel"
- Click on the "Panel" component on "Add Component" and then type/select "UIVisibilityController" -> this adds the C# file Now everything should run as intended. No further changes should be neccessary. Try it in play mode and make builds :)
- Click on the button "GUI on" to hide/show the UI.
If you use GPTAvatar for psychological/educational research, please either cite our article http://www.dx.doi.org/10.3389/feduc.2024.1416307 or Seth Robinson's github repository. If you need more code modification or want to collaborate for scientific purposes, please reach out to Maximilian C. Fink ([email protected]). I'm always happy to help and conduct research together :)