Cameras
One Photo Camera component gives players two ways to take photos. Use either, both or neither (your own code can take photos with no camera screen at all).
The Photo Camera component #
| Setting | What it does |
|---|---|
| Game Camera | The camera your game renders with. Empty finds the one tagged MainCamera. |
| Profile | The Photo Profile: how photography works in your game. Empty uses a built-in profile with everything on. |
| Handheld Viewpoint | Where the handheld camera looks from, if not the game camera's own place (a third-person game puts it at the character's eyes). |
| Pause While Open | Components switched off while any camera screen is open (your shooting script). |
| Pause In Photo Mode | Components switched off while the photo mode is open (your player controller). |
| Photo Mode Focus | The character or object the photo mode can circle. With one set, players can switch the photo mode between Free and Orbit. |
| Hideable In Photo Mode | Objects players may hide in the photo mode, usually their own character. Only the renderers are switched off, and they come back on closing. |
| Selfie Focus | The player's face or head, which the selfie camera looks at. Empty uses the Photo Mode Focus, then the Handheld Viewpoint, then the game camera's own place. See Selfies. |
| Shown In Selfie | Objects shown only while the selfie camera is up: the character model of a first-person game, hidden the rest of the time. |
| Events | Opened, Closed, Photo Taken, Photo Kept, Photo Discarded, Photo Saved, Shot Refused, Selfie Changed. |
Your game camera is borrowed, never replaced. While a screen is open the kit changes its field of view and, in the photo mode, its position. On closing, its place on its parent, its rotation, field of view and any lens effect are put back exactly, so a camera that rides on a character stays with the character.
The handheld camera #
The in-world camera, used while the game runs: raise it, zoom, take the photo. Settings are in the profile under Handheld.
| Setting | What it does |
|---|---|
| Enabled | Players can raise it. |
| Widest View, Closest Zoom | The zoom range, as fields of view. |
| Zoom Speed, Zoom Smoothing | How zooming feels. |
| Controls Look | Let the kit turn the view while the camera is up. Leave off when your own controller keeps looking around. |
| Look Speed, Steady Aim, Slow Look When Zoomed | How aiming feels, with a hold-to-steady button for long lenses. |
| World | What the game does while it is up: Keep Running, Pause or Slow Motion. |
| Counts For Progress | Photos from it can be judged, complete requests and fill the journal. |
| Body | The camera body players look through when they raise the camera. Empty is the plain viewfinder. |
| Players Switch Body | Players can switch between camera bodies while the camera is up (V, or X on a gamepad). |
| Bodies | The bodies players can switch between. Empty offers the built-in set of eight. |
| Lenses, Players Switch Lens | Lenses players swap between, each with its own zoom range. See Lenses. |
| Selfie | The selfie camera: the handheld camera turned round to face the player. See Selfies. |
| Flash | The flash: a real light that fires at the shutter. See The flash. |
Camera bodies #
A camera body is a camera the player looks through: the handheld camera then looks like a real camera held up in front of them, not a bare screen. Eight are built in, and players switch between them with V while the camera is up:
| Body | What the player sees |
|---|---|
| SLR Viewfinder | Through the eyepiece: a dark surround, focus points, a readout strip with the lens length and film left. |
| Camera Back | The back of a camera held up: its screen, a dial, a four-way pad and buttons. |
| Phone | A phone held sideways with its camera app: a shutter button, a zoom readout. |
| Camcorder | A fold-out screen with REC, a running clock, the date, a battery and a zoom bar. |
| Instant Camera | The small square eyepiece of an instant camera. Square pictures with an instant print frame, and a fixed lens. |
| Rangefinder | Bright frame lines with extra view round them, and a focusing patch in the middle. |
| Disposable | The tiny plastic window of a single-use camera. A fixed lens, a faded look and the date burned into the corner. |
| Photo Booth | Curtains, a brass frame and a row of lamps. One press takes four photos with a countdown before each and prints them as one strip. |
Each camera has its own character, and every part of it is a setting you can give to any body:
- Its own shutter sound: a mirror slap, a soft click, two beeps, a motor pushing a print out, a winding ratchet. All made in code; give a body your own clip to replace it.
- A date stamp: the camcorder and the disposable burn the date into the corner of the saved picture.
- A print that develops: the instant camera's photo comes up from pale paper on the result card.
- A photo strip: the photo booth prints its photos as one tall picture.
The saved picture is exactly what shows in the body's window. The body itself is never in the picture, and recognition, scoring and requests all judge the window, not the whole screen. A body can also bring what goes with that camera: its own picture shape, how much of the zoom range it has, a filter and a frame. The player's own choices (in the photo mode's Frame tab, say) still win.
Only the handheld camera has a body. The photo mode is always the free camera.
Make your own #
Create > Photoworthy > Camera Body makes a body asset. Pick a Style, press Use This Style's Colours And Window, then change anything:
| Setting | What it does |
|---|---|
| Style | How the body is drawn: one of the seven above, or Picture for your own artwork. |
| Window | How much of the screen's height the picture window takes. |
| Own Shape, Shape | The picture shape of this body. Off uses the profile's. |
| Corner | How round the window's corners are. |
| Zoom Limit | How much of the profile's zoom range this body can use. 0 is a fixed lens. |
| Body, Trim, Accent, Text | The body's colours. |
| Outside | How dark the world outside a camera held in front of you is. |
| Readouts | Show the body's readouts (lens length, film left, the clock). |
| Picture | Your own artwork for the Picture style: a picture the shape of the screen with a see-through window in the middle. |
| Filter, Frame | A filter and a frame that go with this body until the player picks another. |
| Raise Seconds | How long the body takes to come up when the camera is raised. |
| Blackout | How long the window goes dark at the shutter. |
| Shutter Sound | This body's own shutter sound. Empty uses the built-in sound of its style. |
| Date Stamp, Stamp Color | Burn the date into a corner of every saved picture, in this colour. |
| Own Result, Result | How this body shows a photo after the shutter (a print, on its own screen, a thumbnail and so on), when the profile's Review settings follow the camera. See After the shot. |
| Develop Seconds | The photo comes up from pale paper on the result card over this many seconds. 0 shows it at once. |
| Strip Photos, Strip Seconds | One press takes this many photos, with this countdown before each, and prints them as one strip. |
List your bodies in the profile under Handheld > Bodies, and set Body to the one the camera starts with. Tools > Photoworthy > Create Camera Body Assets makes the eight built-in bodies as assets of your own, ready to recolour. To give every player one fixed camera, set Body and switch Players Switch Body off.
From code: Body, BodyIndex, StepBody(1), ResetBody() and the BodyChanged event on the Photo Camera.
With reduced motion on, the body appears at once and the window does not go dark at the shutter.
Lenses #
List lenses in the profile under Handheld > Lenses and players swap between them with Z while the camera is up: a wide lens for landscapes, a standard one, a long telephoto for shy animals. Each lens is a name and a zoom range (Widest View and Closest Zoom, as fields of view), and a new lens always starts at its widest. With no lenses listed the camera has one lens: the zoom range at the top of Handheld.
Untick Unlocked on a lens and it becomes a reward: the player does not have it until your game calls
UnlockLens("Telephoto") on the Photo Camera, for a finished request, a shop, a level. LockLens takes it back.
From code: Lenses, LensInUse, LensIndex, StepLens(1), LensesUnlocked and the LensSwapped event. A camera
body's Zoom Limit applies to whichever lens is on.
Selfies #
X turns the handheld camera round (Start on a gamepad). It is held at arm's length in front of the player and looks back at them, with whatever is behind them in the picture. X again turns it back. Everything else works as before: the camera bodies, the flash, bursts, the photo booth strip.
- The face. Give the Photo Camera a Selfie Focus: a transform at the character's face or head. Without one the camera uses the Photo Mode Focus, then the Handheld Viewpoint, then the game camera's own place.
- A first-person game. The character model is usually hidden. List it under Shown In Selfie and it is switched on for the selfie and off again after. For anything else (a pose, an expression, a layer), use the Selfie Changed event.
- Looking around. The arm points where the player looks: turning turns the camera round the player, and looking up lifts it, as far as Tip allows. This follows your own controller, or the kit's when Controls Look is on.
- Nothing in the way. The player's own colliders never hide the subject behind them, and the camera comes closer instead of going through a wall.
In the profile, under Handheld > Selfie:
| Setting | What it does |
|---|---|
| Enabled, Players Switch | Allow selfies, and let players switch with the key. Off leaves it to your code. |
| Arm Length, Lift | How far in front of the face the camera is held, and how far above it. |
| Field Of View | The selfie camera's own wide view. 0 keeps the lens that is on. |
| Tip | How far players can tip the camera up and down. |
| Face Side | Where the face sits in the picture: 0 the middle, -1 the left edge, 1 the right. To one side leaves room for what is behind. |
| Collide, Collision Layers, Collision Radius | Keep the camera out of walls. |
A photo taken this way carries the value selfie = yes, and its shot has Selfie set. So a request can ask for a
selfie with a subject: a Shows Subject rule and a Data Equals rule with the name selfie and the value
yes. From code: Selfie, ToggleSelfie(), CanSelfie, SelfieFocus, ShownInSelfie and the SelfieChanged
event.
The flash #
The flash is a real light, not a white screen: it fires at the shutter, so it is in the saved picture, and it lights whatever your own lights light. Players switch it between Auto, On and Off with F while the camera is up, and the viewfinder says which it is. Settings are in the profile under Handheld > Flash.
| Setting | What it does |
|---|---|
| Enabled | The camera has a flash. |
| Mode | When it fires, until the player chooses: Off, Auto (when the view is dark) or On. |
| Players Switch | Players can switch the mode while the camera is up. |
| Brightness, Brightness Hdrp | How bright it is. The High Definition pipeline measures light in candela, so it has its own number. |
| Range, Color | How far it reaches, and its colour. |
| Dark Below | Auto fires when the view is darker than this. |
| Seconds | How long the flash stays on the screen. |
| Recharge | How long it takes to charge again. A photo taken sooner is taken without it. |
| In Photo Mode | The flash also fires in the photo mode. |
Auto looks at how dark the view is with one very small extra render at the shutter, never every frame. From code:
FlashMode, StepFlash(), FlashCharge, the FlashFired event, and Flash on every shot says whether it fired.
Surfaces with unlit materials are not lit by any light, the flash included. In the demos, N switches day and night.
Photo strips #
A photo strip is several photos printed as one tall picture, the way a photo booth does it. The Photo Booth body
takes one with every press; from code, any camera can: TakeStrip(4, 3f) takes four photos with a three second
countdown before each. Every photo of a strip is an ordinary photo (judged, kept and counted like any other); the
strip is an extra picture in the album. The shutter button or Back stops it part way.
How it is printed is in the profile under Strip: the paper's colour, the border, the gap between photos, the wider
band at the bottom, how tall each photo is, and whether the strip is kept in the album. The StripMade event hands
you the strip, for a reward or your own screen.
Focus lock #
With subject marks on, a bracket glides to whichever subject is under the centre mark and closes in with a chirp
when it has held it for a moment. It tells the player "this is what the photo will be of" before they press the
shutter. Switch it off under Screens > Focus Lock. From code: FocusTarget and the FocusLocked event.
Match a shot #
In the album, G raises the camera with the chosen photo shown faintly over the view, so the player can take the
same shot again: a before-and-after, a "find where this was taken" quest. G again takes it away, and so does putting
the camera down. From code: ShowGhost(photo), ClearGhost(), GhostOpacity.
The photo mode #
A free camera for beautiful pictures: fly, zoom, tilt, set the lens, hide the controls, take the photo. Settings are in the profile under Photo Mode.
| Setting | What it does |
|---|---|
| Enabled | Players can open it. |
| World | Pause (the default), Slow Motion or Keep Running. |
| Move Speed, Fast Multiplier, Look Speed, Smoothing | How flying feels. |
| Travel Radius | How far the camera can fly from where it started. 0 is no limit. |
| Collide, Collision Radius, Collision Layers | Stop the camera at walls and floors. |
| Widest View, Closest Zoom, Max Tilt | The lens and tilt limits. |
| Counts For Progress | Off by default, so players cannot freeze time and fly to a perfect shot. Switch on if your game wants it. |
The controls panel has four tabs. Up and down pick a row, left and right change it; the mouse works too. H hides the controls for a clean view, R resets the lens.
| Tab | Rows |
|---|---|
| Camera | Zoom, tilt, guide lines (thirds, golden ratio, diagonals, centre), the shutter timer, Free or Orbit, show or hide the character, viewpoints |
| Lens | Focus blur, auto focus, focus distance, blur amount, brightness, contrast, colour |
| Look | Filter, warmth, tint, dark corners |
| Frame | Frame, and the picture's shape (screen, 16:9, 3:2, 4:3, square, portrait 4:5 and 9:16, 21:9) |
Rows only show when they apply: Orbit needs a Photo Mode Focus, the character row needs something hideable, viewpoints need a Photo Spot in the scene, and the timer and shape rows have their own switches in the profile.
Auto focus #
With focus blur on, the focus follows whatever is under the centre mark: a photo subject first (it needs no collider), otherwise the first thing a ray from the lens hits. Changing the focus distance by hand takes over until auto focus is switched on again.
Orbit #
Give the Photo Camera a Photo Mode Focus (a transform at the character's chest or head) and the photo mode gets a Camera row: Free flies as before, Orbit circles the focus. In Orbit, looking turns the camera round the focus, forward and back move in and out, and up and down raise the point being circled. Walls still stop the camera.
Viewpoints #
A Photo Spot (Add Component > Photoworthy > Photo Spot) is a camera position you place in the scene: point its blue arrow where the camera should look and give it a name. The photo mode's Viewpoint row steps through them, so players can jump to the best views you found. From a spot they can still look around and fly on.
A spot is also a fixed camera for your game: call its Capture() from any event (a ride passing a finish line, a
security camera, a checkpoint) and a photo is taken from there, with the game camera put straight back.
The shutter timer #
The Timer row sets 3, 5 or 10 seconds. The shutter then counts down in the middle of the view before the photo is
taken, so players can pose or hide the controls first. Pressing the shutter or Back again cancels it. From code:
TakePhotoAfter(seconds) and CancelTimer().
Lens effects in every pipeline #
Focus blur, brightness, contrast, colour, warmth, tint and dark corners work the same in all three render pipelines, with nothing to set up:
- Built-in: the kit's own image effect. No Post Processing package needed.
- URP and HDRP: the kit drives a temporary Volume while a camera screen is open, and removes it on closing. Post processing must be on for the camera, which is the default in new projects.
The saved picture has the same look as the screen.
Filters and frames #
Seven filters (Warm, Cool, Vivid, Faded, Black and White, Sepia, Noir) and four frames (White border, Instant print, Black border, Film bars) are built in. Make your own with Create > Photoworthy > Filter and Frame, and list them in the profile's Filters and Frames. A frame with the Picture style uses your own artwork. Frames are drawn into the saved picture.
Film and pace #
Under Film in the profile:
| Setting | What it does |
|---|---|
| Limited | Photos use up film. Off means players can shoot for ever. |
| Starting Shots, Max Shots | How much film the camera starts with and can hold. Give more with AddFilm. |
| Cooldown | Seconds before the next photo. |
| Burst, Burst Interval | How many photos one press of the handheld shutter takes, and the gap between them. A burst of 3 to 5 is the easy way to catch a jump. Each photo uses film. |
| Burst Sheet | Print each burst as one contact sheet as well: its photos side by side on one picture in the album. |
| Refund Rejected | Photos that are not kept give their shot back. |
| Photo Mode Uses Film | The photo mode uses film too. |
Which photos are kept #
Under Review in the profile, Keep decides: Everything, Only With A Subject, Only Good Shots, or Player Chooses
(the result card waits for Keep or Discard). For your own rule, set the camera's DecideKeep in code. See
Scripting.
When the camera says no #
Block the camera from your game (a cutscene, a no-photo zone) with Blocked = true, or give it a rule with CanOpen
and CanShoot. When a photo is refused, the Shot Refused event says why: no film, album full, not ready, or blocked.
Keys #
All keys are in the profile under Keys, with gamepad buttons added when the Input System is installed. Switch
Built In Input off to drive everything from your own input: call OpenHandheld, OpenPhotoMode, TakePhoto and
Close. See Fit it into your game.