Create toggle ai features#859
Merged
HaluBoi merged 2 commits intoNPC-Prefab-Improvementsfrom May 1, 2025
Merged
Conversation
Add an NPC in receptionOutdoor that will provide AI feature toggling. Reload current active scene when the user has made a choice. Co-Authored-By: Halvor Heien Førde <halvohf@stud.ntnu.no>
Add an NPC at the ReceptionOutdoor Spawn point that will ask the user about consenting to AI features. Add loading scene when toggling AI features on and off. Make method LoadSceneWithLoadingScreen public so that it can be accessed in ConsentForm.cs. Add a condition in method SpawnNPC in NPCSpawner.cs to listen to toggling state.
HaluBoi
reviewed
May 1, 2025
There was a problem hiding this comment.
We'll remove the commented out code in the OnDestroy function in post
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Adds AI toggling feature. A new NPC in the receptionOutdoor spawn point was added, who will ask the user about consenting to AI features.
What is the current behavior? (You can also link to an open issue here)
There was no feature to toggle on and off AI features.
What is the new behavior? (if this is a feature change)
Adds AI toggling feature. Currently works only for ReceptionistRachel and Laboratory Guide Larry in Laboratory Scene.
Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
Made the method "LoadSceneWithLoadingScreen" in AISceneController.cs public. Added an extra condition under in method SpawnNPC in NPCSpawner.cs.
Other information: