ParelVRDocs
Player site

Creators / Component reference

World components

Everything you can place in a world scene.

Every field listed here comes from the SDK itself, with the tooltip you see in the inspector.

World Descriptor#

ParelWorldDescriptor Add Component > ParelVR / World Descriptor

Place this component on a GameObject in your scene to mark it as a ParelVR World. The SDK will detect it automatically and allow you to publish the scene. The blueprintId is assigned on first publish and saved with the scene so that future builds update the same world instead of creating a new one.

Field Type Description
Player Parameters ParelPlayerParameters Named values every player carries in this world (team, role, toggles), read and written by world scripts. Edit them in ParelVR SDK > Volt > Settings > Player Parameters.

ParelVR Spawn Point#

ParelVRSpawnPoint Add Component > ParelVR / World SDK / ParelVR Spawn Point

Field Type Description
Spawn Label string
Priority int
Radius Override float
One Shot bool
Enabled For Runtime bool
Facing Mode ParelVRSpawnFacingMode
Gizmo Color Color

ParelVR Mirror#

ParelVRMirror Add Component > ParelVR / World SDK / ParelVR Mirror

A mirror for worlds. Put it on a flat mesh (a quad) whose front faces the room; it shows what is in front of it, in VR one picture per eye. It renders itself, so it works the same in ParelVR and in the editor's play mode.

Field Type Description
Reflect Layers LayerMask Layers the mirror shows.
Resolution int Pixels along each side of each eye's picture. Higher is sharper and costs more.
Anti Aliasing int Smooths edges: 1 (off), 2, 4 or 8 samples.
Max Distance float Farther than this (metres) from the mirror, it stops updating.
Far Clip Plane float How far into the reflection things are drawn (metres).
Tint Color Colour the reflection is multiplied by (when the material has a _Tint colour).
Custom Material Material Optional: your own material, for a custom mirror look (frames, tints, distortion, fades). Its shader receives the reflection as _ReflectionTexLeft and _ReflectionTexRight; sample them at the screen position flipped on X, as the SDK Mirror shader does. Empty: the plain SDK mirror.

ParelVR Video Player#

ParelVRVideoPlayer Add Component > ParelVR / World SDK / ParelVR Video Player

ParelVR's creator-facing video player entry point. Wraps a standard Unity VideoPlayer (auto-resolved from the same GameObject if not explicitly assigned) with the handful of controls a world creator actually needs -- play-on-start, loop, and public Play/Pause/Stop for wiring up buttons or other scripts. Does not reimplement video decoding/playback itself; that's Unity's own VideoPlayer.

Field Type Description
Player VideoPlayer
Play On Start bool
Loop bool

Local Portal In#

ParelVRLocalPortalIn Add Component > ParelVR / World SDK / Local Portal In

The doorway a player walks into. Walking through it (from the side its blue line points to) takes them to its Exit, keeping where they stand in the doorway and the way they walk, as if the two were one opening. Size is the doorway's opening, centred on this object, its foot at this object's position.

Field Type Description
Exit ParelVRLocalPortalOut Where walking through this doorway takes the player.
Size Vector2 Width and height of the opening, in metres.
Show Doorway bool Draw the ParelVR portal doorway here (off: the world's own models show where it is).
Two Way bool Either side can be walked into (off: only from the side the blue line points to).
Gizmo Color Color

Local Portal Out#

ParelVRLocalPortalOut Add Component > ParelVR / World SDK / Local Portal Out

Where a ParelVRLocalPortalIn lets the player out. They come out in front of it, facing the way its blue line points (turned the way they walked in). Several In doorways may share one Out.

Field Type Description
Size Vector2 Width and height of the doorway drawn here, in metres.
Show Doorway bool Draw the ParelVR portal doorway here for a moment as somebody comes out.
Gizmo Color Color

World Portal#

ParelVRWorldPortal Add Component > ParelVR / World SDK / World Portal

A doorway to another world: walking through it takes the player to the world with this World ID (its default public instance, or a new one). The ID is the one shown on the world's page and in the uploader. When a player comes within ActivationRadius the portal sparks up, spirals open and the world it leads to loads behind it, so it can be seen through live and walked into; walking away closes it again.

Field Type Description
World Id string The ID of the world this portal leads to.
Size Vector2 Width and height of the opening, in metres.
Activation Radius float Players closer than this (metres, measured along the floor) open the portal and load the world behind it. It closes again when they walk away.
Always Open bool Stays open all the time instead of opening when someone comes near (the world behind it stays loaded).
Show Doorway bool Draw the ParelVR portal doorway here (off: the world's own models show where it is).
Gizmo Color Color

Avatar Pedestal#

ParelVRAvatarPedestal Add Component > ParelVR / World SDK / Avatar Pedestal

Shows one avatar in your world, the full avatar as it looks on the Avatars page in the menu, and lets players wear it. When a player comes within ActivationRadius a small portal ring sparks up on the pedestal, spirals open and the avatar rises up out of it; walking away sends it back down and the ring closes. Put this on the top of your pedestal model: the avatar stands on this object's position, facing its blue line. Any avatar can be shown by its Avatar ID (shown on the avatar's page and in the uploader). Who may wear it follows the avatar's own visibility; an avatar whose creator has blacklisted you is not shown in your worlds.

Field Type Description
Avatar Id string The ID of the avatar to show (avtr_…), from the avatar's page on the website or the uploader.
Activation Radius float Players closer than this (metres, measured along the floor) open the pedestal. It closes again when they walk away.
Ring Radius float Radius of the portal ring the avatar rises out of (metres). It grows by itself for a wider avatar.
Display Height float How tall the avatar stands on the pedestal (metres). 0 = its real size.
Spin Speed float The avatar turns slowly, as on the pedestal in the menu (degrees a second). 0 = it stands still facing the blue line.
Allow Wearing bool Show the avatar's name and let players wear it by pressing on it (off: it's only on show).
Always Open bool Stays open for everyone, all the time, instead of opening when someone comes near.
Gizmo Color Color

World Menu#

ParelWorldMenu Add Component > ParelVR / World SDK / World Menu

The world's own menu inside ParelVR's main menu: while players are in the world, its icon sits in the menu's top bar and opens a page with the menu's name, its pages down the left and their controls (buttons, toggles, sliders, option switchers, page links and text). Each player has their own values. Without code: toggles switch objects on and off, buttons flip objects, sliders set sounds' volume, option switchers show one object per choice. With Volt scripts: OnWorldMenuButton / Toggle / Slider / Option tell a script when a player uses a control, and VoltWorldMenu reads and sets values, names, visibility and the open page. One per world, anywhere in the scene.

Field Type Description
Menu Name string The menu's name, shown on its page and when pointing at its icon.
Icon Texture2D The menu's icon in ParelVR's top bar (square, white on transparent looks best). Optional.
Pages List<ParelWorldMenuPage> The first page opens with the menu.

3D Audio Raycast Single Object#

ParelRaycastAudioObject Add Component > ParelVR / World SDK / 3D Audio Raycast Single Object

3D Audio Raycast, Single Object: a sound that comes from one object (a radio, a fire, a speaker, a machine). Add it next to the object's AudioSource. Walls and props between you and it let only some of it through by what they are made of, it finds its way round corners and through doorways and is heard from there, it reflects off the walls, floor and ceiling round you, it fills the room with that room's echo, and it loses its highs far away. The object's own colliders never block it. A Single Object inside a 3D Audio Raycast Zone uses its own settings instead of the zone's.

Field Type Description
Sound Size float Object. How big the sound is (meters). The muffling rays spread over this size, so a big sound peeking out past a wall is only partly muffled, and up close it sounds as big as this.

3D Audio Raycast Zone#

ParelRaycastAudioZone Add Component > ParelVR / World SDK / 3D Audio Raycast Zone

3D Audio Raycast Zone: every sound inside it gets 3D Audio Raycast. Put it round a room, a building or the whole world and every AudioSource whose object is inside (also ones that are spawned or move in later) plays through the headset's 3D audio, is muffled by the walls between you and it by what they are made of, finds its way round corners and through doorways, reflects off the walls, floor and ceiling round you, fills the room you are in with its echo and loses its highs far away. A sound that leaves the zone goes back to how it was. Players' voices, the menus, sounds with a 3D Audio Raycast Ignore, and sounds with their own 3D Audio Raycast Single Object (which uses its own settings) are left alone. The zone is a box, a sphere, or the colliders on this object and its children (trigger colliders, so players can walk through; several boxes make an L-shaped building or a long street). Optionally it also has an Area Sound that fills the zone instead of coming from one point (a river, rain on a roof, a room's hum): outside the zone it comes from the zone's nearest point, inside it is all around you.

Field Type Description
Take Every Sound bool Zone. Every sound inside the zone gets 3D Audio Raycast, also ones that are spawned or move in later.
Include2 D Sounds bool Sounds set to 2D (Spatial Blend 0) inside the zone are made 3D too, coming from their object. Off = 2D sounds stay exactly as they are (or put a 3D Audio Raycast Ignore on background music).
Sound Size float How big each sound is (meters), for the muffling rays and how big it sounds up close. 0 = from the size of the object it is on.
Shape ZoneShape
Center Vector3 The middle of the box or sphere, from this object.
Size Vector3 The box's size (scaled by this object).
Radius float The sphere's radius (scaled by this object).
Area Sound AudioSource Area Sound (optional). A sound that fills the whole zone instead of coming from one point (a river, rain on a roof, a room's hum). Put it on a child object: outside the zone it plays from the zone's nearest point, inside it is all around you. Leave empty for none.
Inside Fade float Meters in from the edge it takes for the Area Sound to go from coming from the edge to all around you.
Inside Direction float Deep inside: 0 = the Area Sound is all around you, 1 = still from the nearest edge (box and sphere).

Raycast Audio#

ParelRaycastAudio

What the two 3D Audio Raycast components share. Every sound they drive is worked out from the world's real geometry, again and again as you move: It plays through the headset's 3D audio (the same as players' voices). A spread of rays from your ears to the sound (it has a size, so it clears bit by bit as you step round a corner) finds every wall, floor and prop in between. Each one lets some of the sound through, more of the lows than the highs, by what it is made of (see 3D Audio Raycast Material): behind brick you hear a dull thump, behind a curtain nearly all of it. When the sound is blocked, rays look for the way round: through a doorway, an open window, over a wall, round two corners. That path is heard from its direction, later by the extra distance, and duller the sharper it bends, so a radio in the next room comes out of the doorway and clears as you walk up to it. Rays round you find the walls, floor and ceiling. Each one sends you a real reflection of the sound (from the right direction, at the right delay, softer off soft materials) and together they set the room's echo tail: a small tiled room rings short and bright, a big hall long, a carpeted room is dead, outdoors is dry. Far sounds lose their highs the way they do in the air. The AudioSource's own volume, Min/Max Distance and rolloff still decide how loud it is and how it fades, and World Menu sliders and Volt scripts can change them as usual: all of this works on the sound itself, never on those settings.

Field Type Description
Headset3 D Audio bool 3D audio. Play through the headset's 3D audio, the same as players' voices. Off = Unity's plain left/right panning.
Muffle Through Walls bool Walls. Walls, floors and props between you and the sound let only some of it through, more of the lows than the highs.
Occluders LayerMask What blocks the sound. Players, UI and Ignore Raycast are left out. Trigger colliders never block it.
Wall Strength float How much walls block: 1 = like real life, 0.5 = half as much, 2 = like walls twice as thick.
Around Corners bool When the sound is blocked, it finds its way round: through doorways and open windows, over walls and round corners, and is heard from there.
Smoothing float Seconds it takes to change when a wall comes between or goes away. Short = snappy, long = soft.
Air Absorption bool Distance. Far sounds lose their highs, the way they do in the air.
Room Echo bool Room. Real reflections off the walls, floor and ceiling round you, and the room's echo tail, both measured with rays.
Echo Amount float How strong the reflections and the echo tail are. 1 = like real life.

3D Audio Raycast Material#

ParelRaycastAudioMaterial Add Component > ParelVR / World SDK / 3D Audio Raycast Material

3D Audio Raycast Material: what a wall, floor or prop is made of, for 3D Audio Raycast sound. It sets how much sound gets through it (brick and concrete let almost nothing through, wood and glass more, curtains and bushes most of it, always more of the lows than the highs) and how much it soaks up (a carpeted room echoes less than a tiled one). It works for the colliders on this object and all its children. Without one, 3D Audio Raycast guesses from the collider's physics material, the object's material and its name (glass, wood, metal, brick, concrete, stone, carpet, curtain, fabric, bush, leaves, water), and uses Generic for the rest.

Field Type Description
Material Kind What it is made of. Custom = set the numbers yourself.
Lets Through Vector3 Custom. How much sound gets through, for low, middle and high pitches (0 = nothing, 1 = all of it).
Soaks Up Vector3 How much sound it soaks up instead of bouncing back, for low, middle and high pitches (0 = it all bounces, 1 = none does).

3D Audio Raycast Ignore#

ParelRaycastAudioIgnore Add Component > ParelVR / World SDK / 3D Audio Raycast Ignore

3D Audio Raycast Ignore: the sounds on this object and its children stay exactly as you made them, even inside a 3D Audio Raycast Zone (background music, a 2D announcer, a sound you process yourself).

RSP Sender#

ParelRspSender Add Component > ParelVR / World SDK / RSP Sender

Sends from this part of the world to RSP apps. Hook the Send methods up to a button or any event, send this object's on/off state, or follow an Animator parameter and send it whenever it changes. The address lives under /world/, so "door" is /world/door.

Field Type Description
Address string The address apps hear this on. Everything a world sends is under /world/, e.g. /world/door.
Send Active State bool Sends true when this object is switched on and false when it is switched off.
Animator Animator Animator. Sends the parameter below whenever its value changes.
Parameter string

RSP Receiver#

ParelRspReceiver Add Component > ParelVR / World SDK / RSP Receiver

Lets RSP apps drive this part of the world. Pick an address (it lives under /world/, so "lights" is /world/lights), then choose what a message does: switch objects on and off, set an Animator parameter, and/or call your own events with the value. Put it on an object that stays on: a receiver that is switched off stops listening.

Field Type Description
Address string The address apps send to. Everything a world listens on is under /world/, e.g. /world/lights.
Toggle Objects GameObject[] Switch Objects. Switched on by true / 1 and off by false / 0.
Invert bool Switch them the other way round: true / 1 switches them off.
Animator Animator Animator. Gets the value in the parameter below. Bool, Int, Float and Trigger parameters all work.
Parameter string
On Float UnityEvent<float> Events.
On Bool UnityEvent<bool>
On String UnityEvent<string>
On Message UnityEvent Called for every message, whatever it carries.
Last Text string

Rsp World#

ParelRspWorld

Where a world's RSP components meet the game. The game hands this every RSP message whose address starts with /world/ and sends out whatever the world's components send, so apps outside the game (stream decks, overlays, lighting rigs) can drive a world's objects and hear back from them.

Skybox Cycle#

ParelSkyboxCycle Add Component > ParelVR / World SDK / Skybox Cycle

Several skyboxes in one world. Each entry is a skybox material with the ambient light, fog and sun that go with it. Switch by hand (Next / Previous / SetSky, e.g. from a button or Volt) or let the world cycle on its own. Cycling follows the shared clock (UTC), so every player in the instance sees the same sky without any networking. Changes fade over Fade Seconds: lighting, fog and the sun blend; the skybox material itself switches halfway, while the exposure dips so the swap is not seen.

Field Type Description
Skies Sky[]
Sun Light Optional: the directional light that is the sun.
Auto Cycle bool Cycle through the skies on the shared clock.
Seconds Per Sky float Seconds each sky stays up while cycling.
Fade Seconds float
Start Sky int
Current int

Weather#

ParelWeather Add Component > ParelVR / World SDK / Weather

Weather for a world: Clear, Rain, Snow, Fog or Storm (rain with lightning and thunder). Rain and snow fall in a box around the player's own view, so they cost the same in any size of world. Pick one, call SetWeather from a button or Volt, or let it change on the shared clock (UTC) so everyone in the instance has the same weather without networking. Weather blends in over Fade Seconds.

Field Type Description
Weather Kind
Auto Cycle bool Change weather on the shared clock, picking from Cycle.
Cycle Kind[]
Seconds Per Weather float
Fade Seconds float
Intensity float Look.
Area Size float Size of the falling area around the player, in metres.
Rain Color Color
Snow Color Color
Fog Color Color
Fog Density float
Lightning Light Storm. Optional: flashed for lightning. A new one is made when empty.
Thunder AudioClip[]
Rain Loop AudioSource