Subjects
A subject is anything a photo can be about: an animal, a person, a landmark, a clue, a whole camp. Two pieces make one:
- A subject asset says what kind of thing it is: its name, journal section, behaviours and tags. Many objects can share one ("Zebra").
- A Photo Subject component on an object in the scene says "this is one of those".
Make one #
Select objects and press Tools > Photoworthy > Make Selected Photographable. Each gets a Photo Subject and, when
needed, a new subject asset named after it in Assets/RareGeometryData/Photoworthy/Subjects. To make several objects
the same kind, give them the same subject asset.
The subject asset #
| Setting | What it does |
|---|---|
| Id | The key saved in photos and the journal. Keep it once players have saves. |
| Display Name | The name players read. |
| Description | A line or two for the journal page. |
| Category | The journal section it is listed under (Animals, Landmarks, Clues). |
| Icon, Color | Shown in the journal and offered to maps. |
| Behaviours | What it can be seen doing. Each has a key ("jump"), a name ("Jumping"), a rarity tier from 1 to 4 and an action score. |
| Tags | Free words such as "bird" or "nocturnal", for request rules. |
| Scoring Override | A different scoring asset for this kind of subject (a landmark is not judged like an animal). |
| In Journal | Leave off for things that should be recognised but never listed. |
| Secret Until Found | The journal shows "?" until the first photo. |
The Photo Subject component #
| Setting | What it does |
|---|---|
| Definition | The subject asset. |
| Photographable | Switch off to hide the object from the camera for a while (a ghost that is not there yet). |
| Anchor Mode | Automatic checks 15 points over the object's bounds. Custom uses your own points, for a subject made of several things or with an odd shape. |
| Details | Named parts of the subject that a photo can show: a face, a licence plate, a wound. Each is a point, optionally only counted when it faces the camera. |
| Front, Has Front | Which way it faces. Switch Has Front off for a tree or a lake so facing is never judged. |
| Max Distance | The farthest it is recognised from. 0 uses the profile's setting. |
| Show On Maps | Offers the subject to map products as a point of interest. See Fit it into your game. |
| Start Behaviour | What it is doing when the scene starts. |
| Data | Your own named values, copied into every photo of it ("mood = angry"). |
| On Photographed | An event raised each time a kept photo shows it. |
Behaviours #
Tell a subject what it is doing and photos know. One line from your own animation or AI code:
GetComponent<PhotoSubject>().SetBehaviour("jump");
Or with no code: call SetBehaviour, BeginBehaviour or EndBehaviour from an Animation Event or any UnityEvent. A
subject can be doing several things at once (walking and eating). With nothing set, the first behaviour of the subject
asset counts.
The journal lists each behaviour once photographed, and a photo of a rarer behaviour scores more for Action.
How the camera recognises a subject #
At the moment of the shutter, on the CPU, with no extra rendering:
- Subjects too far away, switched off or behind the camera are skipped.
- Up to 15 points on the subject are projected into the picture. The share inside the frame is how much is in frame; the box round them is how much of the picture it fills.
- A line is cast from the lens to each point. Points behind a wall or another object are hidden. The subject's own colliders never hide it. Choose which layers can hide things in the profile (leave out glass and leaves).
- The angle between the subject's front and the camera gives facing.
A subject counts when enough of it is in the frame and visible (the profile's Recognition settings). When it does not count, the reason is kept ("Too far", "Hidden", "Cut off") and shown in the Score Inspector and, if you want, to players.
Recognition has three modes in the profile: All Subjects, Main Subject Only (one subject per photo) and Off (a photo is only a picture).
Places #
A Photo Region (GameObject > Photoworthy > Photo Region) is a trigger volume with a key and a name. A photo knows which regions the camera stood in and which regions each subject was in, so requests can ask for "a zebra at the pond" or "taken from the tower".
Scene gizmos #
Select a Photo Subject to see its points, front arrow and maximum distance in the Scene view.