Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ASTRA228b/Experimental/llms.txt
Use this file to discover all available pages before exploring further.
OnScreenNotify is a singleton MonoBehaviour that renders timed text notifications at the bottom-center of the player’s screen using Unity’s IMGUI system. Messages appear automatically when room events fire — such as joining or leaving a Photon room — and can be triggered from any part of the mod with a single static call.
Display Behavior
Notifications are drawn withGUI.Label during Unity’s OnGUI pass. Key rendering characteristics:
- Position: horizontally centered, anchored to the bottom of the screen
- Stacking: multiple active notifications appear as separate lines stacked above one another
- Auto-removal: each notification disappears after its individual duration expires; there is no manual dismiss
- Font: 35 px, white, with Unity rich text enabled (supports
<b>,<color>, etc.)
Because
OnScreenNotify uses IMGUI, notifications render in screen space and are always visible regardless of where the player is looking — including during cutscenes or loading transitions.API
OnScreenNotify.SendIT
SendNotifyScreen.
| Parameter | Type | Default | Description |
|---|---|---|---|
msg | string | — | The text to display. Rich text tags are supported. |
det | float | 2f | How long the notification stays visible, in seconds. |
Built-In Usage
Experimental automatically sends notifications for Photon room events viaJoinManager in JoinAndLeave.cs. JoinManager is a MonoBehaviour whose Update method polls PhotonNetwork.InRoom each frame and fires OnScreenNotify.SendIT whenever the room state changes: