/SteamVR_HUDCenter

Code based on https://github.com/Marlamin work. The final goal of this project is to create a modular API to let C# developer create VR overlays.

Primary LanguageC#MIT LicenseMIT

SteamVR_HUDCenter

NuGet Package [OUTDATED]

A NuGet package is available here

Notifications Hello World

Here's a sample code to create a quick Overlay to send notifications though OpenVR.

            HUDCenterController VRController = new HUDCenterController();
            VRController.Init();
            Overlay Dummy = new Overlay("Dummy", 0);
            VRController.RegisterNewItem(Dummy);
            VRController.DisplayNotification("Hello World!", Dummy, EVRNotificationType.Transient, EVRNotificationStyle.Application, new NotificationBitmap_t());

Since v0.0.3 the above code can be written as:

            HUDCenterController.GetInstance().Init();
            Overlay Dummy = new Overlay("Dummy", 0);
            HUDCenterController.GetInstance().RegisterNewItem(Dummy);
            HUDCenterController.GetInstance().DisplayNotification("Hello World!", Dummy, EVRNotificationType.Transient, EVRNotificationStyle.Application, new NotificationBitmap_t());

Code based on https://github.com/Marlamin work. The final goal of this project is to create a modular API to let C# developer create VR overlays.