This is a set of small scripts I've made for my maps as I wanted to have simple scripts, made for me, instead of using 1/4 of some overengineered stuff, they are clearly not pretty, very opinionated, but they were made for me so *shrug*.
They should works ootb with minor adjustments, and some prefabs are provided for some scripts like settings or togglers etc.
Feel free to provide me improvements if wanted or something.
Nearly all scripts have logging with [OTR_something]
to easily debug stuff from the logs.
I hope you find them useful for you.
- Camera System For worlds: light and full camera systems, fixed and handeld cameras with FOV adjustment
- OttLogger In-world console logger with class/category filtering
World Settings Manager
: Made to have a synced set of parameters for a world (toggle pens, polaroids, colliders, clocks, join alerts, etc.) usable from various panels or udon events, see the related prefab for usesMirrorToggler
: Use Toggle buttons between off/hq/lq/transparent, also change the button color depending on which mirror is activatedQuickTP
: Small script used to have a quick TP list of buttons and... TP the user. On yourButton
set theOn Click ()
to the udon behavior that has theQuickTP
script and set theUdonBehaviour.SendCustomEvent
to one of the functions (_tpToSpawn
etc.).OttSendEventOnTrigger
: send an U# event when an user enter/stay/exit a collider (script needs to be on same GameObject as a box collider in trigger mode)RespawnObject
: as the name impliesTVSwitcher
: used to switch a global Tv vs local one, in local tv elements put your local player stuff (main screen, controls and queue), in local tv manager your ProTV manager, button.. well.. and global tv elements your global tv screen. See the prefabSettings panel 1
Playerlist
,PlayerItem
,HiddenPlayerList
: The playerlist with teleport users function, hiding is handled through the world settings with a button that calls theUdonBehaviour.SendCustomEvent
:_ToggleHideState
on theHiddenPlayerList
scriptAdminManager
: Hide/show items on join if you are admin or no, requires Varneon GroupsLadderTeleporter
: simple teleporterControlsMover
: used to move from one position to another a GameObject
World Settings
: Panel that uses theSettings Manager
U# scriptSettings panel 1
: A local settings panel usingMirrorToggler
,TVSwitcher
, a global player controls (ProTV) and some controls from theSettings Manager
U# scriptsSettings panel 2
: A local settings panel usingTVScreenPosition
andMirrorToggler
U# scriptsVRCMirror HQ Variant
andVRCMirror LQ Variant
: Prefabs so my prefabs can reuse themPlayerlist management
: a Player list with teleport functions and admin/mods indications, based on Varneon Playerlist, requires Varneon Groups