The SocialCueSwitch Unity package is designed to enhance virtual interactions within Unity-powered environments, focusing on improving communication and engagement between avatars through a sophisticated system of audio and visual cues based on proximity and gestures. This package includes a range of pre-configured assets, scripts, and demo scenes to facilitate rapid integration and customization tailored to specific project requirements.
- Import Package: Start by importing the
SocialCueSwitch
package into your Unity project. - Check Dependencies: Ensure your project includes all necessary dependencies such as
UnityEngine
,UnityEngine.UI
, andTMPro
.
- Demo Scene: To get familiar with the system, navigate to the demo scene included with the package.
- Script Attachment: Attach the
SocialCueSwitch
script to your character controller or any avatar that should display social cues.
Customize the SocialCueSwitch
script to fit your project needs:
- Tone Configurations: Set audio clips and volume thresholds for different proximity observations and gesture tones.
- Avatar Configurations: Define and manage observing objects, nearby avatars, and their respective audio settings.
- Arrow Configurations: Adjust the visual indicator arrow, including its appearance and position, to point towards the active talking object.
- Caption Settings: Customize the captions' appearance, including font and timing, to effectively communicate social cues.
- Gesture Recognition: Ensure your avatars are equipped with the necessary components for gesture detection.
- Audio Feedback: Use the
PlayGestureAudio
method to play an audio cue when a gesture is recognized.
- Assign Audio Clips: Choose appropriate clips for proximity alerts and gesture-related tones.
- Volume Control: Adjust volume thresholds to manage when each tone should be played or escalated in volume.
- Arrow Indicator: Configure the arrow prefab to point towards the current speaking avatar, adjusting its position and rotation as needed.
- Captions: Set up captions to display based on social cues, customizing their appearance and display duration.
- Interaction Testing: Use the demo scene to interact with other avatars and test the system's feedback.
- Observe Cues: Pay attention to the audio and visual cues triggered by proximity, eye contact, or gestures.
- Configuration Adjustments: Modify the settings as necessary to achieve the desired behavior for your project.
- Extend Functionality: Advanced users can expand the script's capabilities by adding custom methods for specific events or interactions.
- Custom Feedback: Utilize provided methods, such as
AddCaption
, to offer tailored feedback based on unique scenarios.
Version 1.0: Initial release of the SocialCueSwitch Unity package.