Component reference
Every component the editor offers in Add Component: 120 in all. Each field shows its type, its range where it has one, and its default. Generated from the engine's own schemas, so it always matches the version you download.
Transform
Active Brush FollowSpline Scale Spin Spline Transform3D
Active
Whether the entity participates in simulation and rendering
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
enabled | boolean | true | Off: the object and everything inside it is left out of the scene. |
Brush
Level geometry block (Unreal BSP): Box, Cylinder or Wedge that adds solid space or cuts it away; the object's scale is its size; Tools > Build Brushes makes the mesh
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
shape | string | "Box" | Box | Cylinder | Wedge | |
mode | string | "Add" | Add | Subtract (adds solid space, or cuts it out of what earlier brushes made) | |
color | list of number | [0.62, 0.64, 0.68] | The colour of its faces (a cut colours the walls it leaves) |
FollowSpline
Moves the object along the Spline named spline at speed m/s: Loop, PingPong or Once
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
spline | string | "" | The name of the object with the Spline | |
speed | number | 0 to 500 | 3.0 | Metres per second along the path |
mode | string | "Loop" | Loop | PingPong | Once (round again, back and forth, or stop at the end) | |
face | boolean | true | Turns to face the way it goes | |
distance | number | 0.0 | How far along the path it is, in metres (set by the game) |
Scale
Local 2D scale relative to the parent
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
scale | list of number | [1.0, 1.0] | How much bigger or smaller, across and down. |
Spin
Rotates the object continuously while playing (degrees per second per axis)
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
degrees_per_second | list of number | [0.0, 90.0, 0.0] | How fast it turns. |
Spline
A smooth path through points (local to the object): roads, rails, patrol routes; FollowSpline moves things along it
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
points | list of array | [[0.0, 0.0, 0.0], [4.0, 0.0, 0.0], [8... | The points it passes through, in order, local to the object | |
closed | boolean | false | Joins the last point back to the first (a loop) |
Transform3D
3D position, Euler rotation (degrees, ZXY order) and scale
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
position | list of number | [0.0, 0.0, 0.0] | Where it is in the scene (metres). | |
rotation | list of number | [0.0, 0.0, 0.0] | How far it is turned about each axis, in degrees. | |
scale | list of number | [1.0, 1.0, 1.0] | How much larger it is along each axis; 1 is normal. |
Rendering
Decal MaterialOverride MeshRenderer ParticleSystem SpriteRenderer SpriteSheet Tilemap VideoPlayer
Decal
Projects a picture along the object's -Y onto the surfaces inside its box, lit like what it lands on
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
texture | string | "" | Project-relative path of the picture (png/jpg), whose alpha decides where it shows; empty paints the plain colour | |
color | list of number | [1.0, 1.0, 1.0] | Colour multiplied with the picture | |
opacity | number | 0 to 1 | 1.0 | How strongly it shows |
size | list of number | [2.0, 1.0, 2.0] | The box it covers, in metres, centred on the object: x and z are the picture's width and height, y how far it reaches | |
max_angle | number | 0 to 89 | 60.0 | Surfaces turned further than this from facing the decal are left out, in degrees |
draw_distance | number | 0 to 1000 | 0.0 | How far from the camera it can be seen, in metres (0: from anywhere) |
normal_map | string | "" | Project-relative path of a normal map (OpenGL style, green up) for the decal's bumps: cracks, dents and holes catch the light where the picture shows. Opacity 0 leaves only the bumps |
MaterialOverride
Material override: this object's own tint, glow and fade over its shared material
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
tint | list of number | [1.0, 1.0, 1.0] | Multiplies the material's colour for this object alone | |
glow | list of number | [0.0, 0.0, 0.0] | Light this object gives off, added to the material's own glow | |
fade | number | 0 to 1 | 1.0 | Multiplies the material's opacity: 1 as the material says, 0 invisible |
metallic | number | -1 to 1 | 0.0 | Added to the material's metallic number for this object alone: 1 turns it to metal, -1 takes the metal out |
roughness | number | -1 to 1 | 0.0 | Rougher (above 0) or glossier (below 0) than the material says, for this object alone |
texture | string | "" | A picture (a path in the project, such as Textures/wall.png) shown on this object in place of the material's own colour map; empty keeps the material's |
MeshRenderer
Primitive mesh name and material asset path
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
mesh | string | "Cube" | The shape drawn: a built-in one or a model file. | |
material | string | "" | The material (how the surface looks) put on it. | |
model_yaw | number | 0.0 | Models only: turns the model this many degrees about its own vertical axis when it is drawn, without changing the object's rotation or physics. 180 for a model that faces +Z (it would otherwise walk backwards: objects face -Z at yaw 0). place_model sets it from the model's feet | |
lightmapped | boolean | false | For objects that never move: Window > Bake Lightmaps works out the light reaching it from the sky and off the other lightmapped objects (soft shadows where they meet, colour from the walls around) and it is drawn with that light instead of the plain ambient light | |
sway | number | 0 to 10 | 0.0 | Metres its top moves in a strong Wind: 0.3 for a tree, 0.1 for a bush |
charred | number | 0 to 1 | 0.0 | How burnt it looks: 0 as it is, 1 black |
rim | list of number | [0.0, 0.0, 0.0] | An edge glow in this colour where it turns away from the camera: a figure stands out against the night with it (black: none) |
ParticleSystem
Particle system: emission rate, lifetime, speed, cone spread, size and colour over life, gravity, cap, looping
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
rate | number | 30.0 | How many particles are made each second. | |
lifetime | number | 2.0 | How long a particle lives, in seconds. | |
speed | number | 3.0 | How fast a particle leaves. | |
spread | number | 25.0 | How wide the cone they leave in is, in degrees. | |
size | number | 0.25 | How big a particle starts. | |
size_end | number | 0.05 | How big a particle is when it dies. | |
color | list of number | [1.0, 0.75, 0.3] | The colour a particle starts with. | |
color_end | list of number | [0.9, 0.2, 0.05] | The colour a particle fades to. | |
gravity | number | 1.0 | How strongly particles fall; negative rises. | |
max_particles | integer | 400 | The most particles alive at once. | |
looping | boolean | true | Keep making particles. | |
alpha | number | 0 to 1 | 1.0 | How solid a particle starts: 1 is solid. |
alpha_end | number | 0 to 1 | 0.0 | How solid a particle ends: 0 fades out. |
additive | boolean | true | Add the light of overlapping particles together (fire, sparks). | |
area | list of number | [0.0, 0.0, 0.0] | Emission box half extents (x, y, z): particles start anywhere inside it; 0 = a point | |
stretch | number | 0 to 1 | 0.0 | Streak length in seconds of the particle's motion (0 = a dot): rain |
gpu | boolean | false | Worked out on the graphics card: up to 200,000 particles that move with the object | |
effect | string | "" | A .vfx effect file whose modules set the fields above instead (empty: the fields as they are) |
SpriteRenderer
Sprite: draws a picture from the project (texture path), tinted, optionally flipped; size = pixels / pixels_per_unit
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
texture | string | "" | Project-relative path of the picture (png/jpg); empty shows a tinted square | |
color | list of number | [1.0, 1.0, 1.0] | Tint multiplied with the picture (white keeps its own colours) | |
flip_x | boolean | false | Mirror left to right | |
flip_y | boolean | false | Mirror top to bottom | |
pixels_per_unit | number | 1 to 1024 | 16.0 | How many picture pixels make one world unit |
billboard | boolean | false | In 3D, turn to face the camera around the vertical axis |
SpriteSheet
Sprite sheet: cuts the sprite's picture into columns x rows frames; shows frame, and flips through them at fps while the game plays
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
columns | integer | 1 to 256 | 4 | Frames across the picture |
rows | integer | 1 to 256 | 1 | Frames down the picture |
frame | integer | 0 | The frame shown (0 is the top left; a flipbook keeps this moving) | |
fps | number | 0 to 120 | 8.0 | Frames a second while it plays |
playing | boolean | true | Flip through the frames while the game plays | |
looping | boolean | true | Start over after the last frame (off: stop on it) | |
first | integer | 0 | The first frame of the flipbook | |
count | integer | 0 | How many frames the flipbook uses from first (0: to the end of the sheet) | |
time | number | 0.0 | Seconds into the flipbook (kept by the game) | |
pivot_x | number | 0 to 1 | 0.5 | Pivot across a frame (0 left, 1 right): the point at the object's position |
pivot_y | number | 0 to 1 | 0.5 | Pivot down a frame (0 top, 1 bottom) |
clips | string | "" | Named runs of frames, name=first-last or name=first-last@fps, one after another with ; between (idle=0-3;run=4-9@12). A script picks one by setting clip | |
clip | string | "" | The named run now playing (empty: the first/count run above). Changing it starts that run from its first frame | |
started | string | "" | The run time belongs to (kept by the game) |
Tilemap
2D tilemap: tileset image, tile size in pixels, world size of a cell, grid size, painted tiles, solid in Play
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
tileset | string | "builtin:tiles" | The picture the tiles are cut from. | |
tile_px | integer | 1 to 1024 | 16 | Tile size in the tileset image, pixels |
cell | number | 0.01 to 1.79769e+308 | 1.0 | World size of one cell |
width | integer | 1 to 512 | 24 | How many tiles across. |
height | integer | 1 to 512 | 12 | How many tiles down. |
tiles | string | "" | Which tile is in each square (edited with the tile brush). | |
solid | boolean | true | Painted tiles are colliders in Play |
VideoPlayer
Video player: plays an .mp4 (H.264); the picture is the texture render:<target>, shown on this object when on_object is on
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
clip | string | "" | The video file (project path, .mp4 with H.264 and AAC sound) | |
play_on_awake | boolean | true | Start playing when the game starts | |
looping | boolean | false | Start over when it ends | |
speed | number | 0 to 4 | 1.0 | How fast it plays: 1 as recorded |
volume | number | 0 to 1 | 1.0 | Volume of the sound track |
on_object | boolean | true | Show the picture on this object's own material (its albedo map) | |
target | string | "" | The texture's name: render:<target>; empty uses the object's name | |
playing | boolean | false | Playing right now (a script sets it to pause and play) | |
time | number | 0.0 | Seconds into the video (kept by the game; a script sets it to jump) |
Lighting & Camera
AreaLight Camera CameraFollow DirectionalLight Light2D PointLight ReflectionProbe SpotLight VirtualCamera VrCamera
AreaLight
Area light: a flat rectangular panel that shines from its front face, the way it faces (-Z at no rotation; rotate it to aim). width and height are its size in metres: a window, a soft box, a strip light or a screen. It lights surfaces by the area it covers (a big panel lights wide and soft) and gives a long, rectangular highlight on shiny surfaces. range is how far past the panel the light reaches; it casts no shadow
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
color | list of number | [1.0, 0.97, 0.9] | Linear colour of the light | |
intensity | number | 0 to 1000 | 4.0 | Brightness of the panel's surface |
width | number | 0.05 to 100 | 2.0 | Width of the panel in metres (along the object's right) |
height | number | 0.05 to 100 | 1.0 | Height of the panel in metres (along the object's up) |
range | number | 0.1 to 500 | 20.0 | How far the light reaches past the panel, in metres |
Camera
A camera: vertical field of view (degrees), near and far planes. The first one with the default (whole-screen) viewport is the one the game is seen through; a camera with a smaller viewport draws into that part of the screen over it (a minimap, a mirror, a portrait)
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
fov | number | 60.0 | How wide the camera sees, as the angle from top to bottom in degrees. | |
near | number | 0.1 | The nearest distance it sees (metres): anything closer is cut away. 0.1 is usual; a larger value (0.5) gives far away things steadier depth when the camera never goes close to anything | |
far | number | 200.0 | How far its view reaches, in metres, for shadows and the effects that read depth (fog, ambient occlusion, depth of field). Once it is changed from the default 200, meshes lying wholly past it are not drawn (the default keeps drawing everything the camera sees); terrain, the sky and effects are not cut | |
ortho_size | number | 0 to 1.79769e+308 | 0.0 | Above 0 the camera is orthographic (no perspective) and sees this many world units from the middle to the top edge: the top-down camera of a minimap |
viewport | list of number | [0.0, 0.0, 1.0, 1.0] | Where on the screen it draws: x, y, width, height as fractions of the game view, from the top left. The default fills the screen and makes it the main camera; anything smaller makes it an extra view | |
background | list of number | [0.05, 0.06, 0.09] | Extra views only: the colour the view's rectangle is filled with before it draws (so it does not show the main view through it) | |
ui_target | string | "" | Extra views only: the name of a UI object (a panel or picture in the HUD). The view then fills that object's rectangle on screen, following its layout and hidden with it, instead of using viewport: a portrait, a mirror or a minimap inside a HUD frame | |
render_target | string | "" | Draw into a picture instead of the screen: the picture is named render: plus this name, and works anywhere a texture path does (a UI image's image, a material's texture). A mirror, a security monitor, a portrait | |
render_size | list of number | [256.0, 256.0] | Width and height in pixels of the render_target picture (16 to 2048) | |
focal_length | number | 0 to 400 | 0.0 | A physical camera: the lens's focal length in millimetres. Above 0 it sets the field of view together with sensor_height (and fov is not used): 50 is a normal lens, 24 wide, 200 long |
sensor_height | number | 1 to 100 | 24.0 | A physical camera: the height of the sensor in millimetres (24 is a full-frame photo camera), used when focal_length is above 0 |
roll | number | -180 to 180 | 0.0 | Tilts the picture about the line of sight, in degrees (a roll: a dutch angle, a plane banking) |
clear | string | "SolidColor" | SolidColor | Nothing: extra views only: SolidColor fills the view's rectangle with background before it draws; Nothing draws over what is already there (a floating object) | |
depth | number | -100 to 100 | 0.0 | Extra views draw from the lowest depth to the highest, so a higher one covers a lower |
CameraFollow
Camera follow: the target object's name, the offset from it, the look height above it and how fast the camera catches up
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
target | string | "" | The object the camera follows, by name. | |
offset | list of number | [0.0, 3.0, 6.0] | Where the camera sits, relative to the target. | |
look_height | number | 1.2 | How high above the target's position the camera looks. | |
smoothing | number | 6.0 | How softly the camera catches up; 0 is stuck to the target. | |
enabled | boolean | true | Off = the camera is left alone (a script or cinematic is placing it). Scripts: Camera.Focus pauses it for you |
DirectionalLight
Directional sun: colour, intensity, pitch above the horizon and yaw (degrees)
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
color | list of number | [1.0, 1.0, 1.0] | The colour of the light. | |
intensity | number | 0.9 | How bright the light is. | |
pitch | number | 50.0 | How far the light points down, in degrees. | |
yaw | number | 30.0 | Which way round the light points, in degrees. | |
contact_shadow | number | 0 to 4 | 0.0 | Contact shadows: how far (metres) each point looks toward the sun for the small shadows where things touch, which shadow maps lose (0 = off) |
shadow_distance | number | 0 to 5000 | 0.0 | How far from the camera shadows reach, in metres: 0 for the usual 80. A wide open scene needs more, and the shadows close by get a little softer |
Light2D
2D point light: colour, intensity, radius and edge falloff
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
color | list of number | [1.0, 0.92, 0.8] | The colour of the light. | |
intensity | number | 0 to 1.79769e+308 | 1.0 | How bright the light is. |
radius | number | 0.01 to 1.79769e+308 | 8.0 | How far the light reaches. |
falloff | number | 0.1 to 8 | 2.0 | How fast the light fades toward its edge. |
PointLight
Point light: linear colour, intensity and range; shadows makes it cast shadows
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
color | list of number | [1.0, 1.0, 1.0] | The colour of the light. | |
intensity | number | 1.4 | How bright the light is. | |
range | number | 40.0 | How far the light reaches. | |
shadows | boolean | false | Casts shadows in every direction (the two shadowed point lights nearest the camera do; each costs six depth views a frame) | |
size | number | 0 to 20 | 0.0 | Size of the light's source in metres: 0 is a point; a window, a lamp panel or a tube is larger (an area light), and its highlights come out wider and softer, its light wrapping a little round the surfaces it reaches |
ReflectionProbe
Light and reflection probe: points inside its box get the sky they can see, bounced light and local reflections
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
size | list of number | [10.0, 4.0, 10.0] | The box it covers, in metres, centred on the object | |
intensity | number | 1.0 | Strength of its bounced light and reflections (1 = as captured) |
SpotLight
Spot light: a cone of light from this object along its forward direction (the way it faces; rotate it to aim). angle is the whole width of the cone in degrees, its edge fades out softly; range is how far it reaches. Torches, car headlights, stage lights, flashlights: put it on an object and turn the object to point it
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
color | list of number | [1.0, 0.95, 0.85] | Linear colour of the light | |
intensity | number | 0 to 1000 | 4.0 | Brightness |
range | number | 0.1 to 500 | 30.0 | How far it reaches, in metres |
angle | number | 2 to 170 | 50.0 | Width of the whole cone, in degrees |
shadows | boolean | false | Casts shadows: what stands in the cone darkens what is behind it (the four shadowed spot lights nearest the camera do) | |
size | number | 0 to 20 | 0.0 | Size of the light's source in metres: 0 is a point; a lamp panel or a soft box is larger, and its highlights come out wider and softer |
VirtualCamera
Virtual camera: while the game plays, the active one with the highest priority is what the screen shows; the view eases to it over blend seconds
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
priority | integer | 10 | The highest priority wins (ties: the one made first) | |
fov | number | 1 to 170 | 60.0 | Vertical field of view in degrees; 0 keeps the scene camera's |
look_at | string | "" | An object (by name) this camera always looks at; blank: it looks the way its own rotation points | |
blend | number | 0 to 30 | 1.0 | Seconds the view takes to ease to this camera when it becomes the winner (0: a cut) |
enabled | boolean | true | Off = this camera is never chosen |
VrCamera
VR camera: put on the main camera; while the game plays the view is drawn once per eye, side by side, for a phone in a VR headset, and turns as the head turns
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
eye_distance | number | 0 to 0.2 | 0.064 | Metres between the eyes (most people: 0.058 to 0.07) |
head_tracking | boolean | true | The phone's motion sensors turn the view as the head turns (in the editor: hold the right mouse button and move) | |
in_editor | boolean | true | Play in the editor shows both eyes too (off: the editor shows one picture, phones still show two) | |
enabled | boolean | true | Off = one picture, as without this component |
Physics
BoxCollider BoxCollider3D CapsuleCollider2D CapsuleCollider3D CharacterController CircleCollider Joint2D Joint3D MeshCollider3D PhysicsMaterial3D PolygonCollider2D RigidBody SphereCollider3D Trigger3D
BoxCollider
Axis-aligned box collider (2D, half-extents)
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
half_extents | list of number | [0.5, 0.5] | Half the width and height of the box that other 2D objects bump into. |
BoxCollider3D
3D box collider: half extents in object space (scaled by the object's scale)
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
half_extents | list of number | 0 to 1.79769e+308 | [0.5, 0.5, 0.5] | Half size on each axis, in object-space units |
center | list of number | [0.0, 0.0, 0.0] | Where the box sits relative to the object's origin (object-space units) |
CapsuleCollider2D
Capsule collider (2D): an upright shape with round ends (characters); height is end to end
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
radius | number | 0.001 to 1.79769e+308 | 0.5 | Radius of the round ends, in world units |
height | number | 0.001 to 1.79769e+308 | 2.0 | Height from the bottom of one end to the top of the other, in world units |
CapsuleCollider3D
3D capsule collider (upright, along Y): radius and total height in object units
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
radius | number | 0.001 to 1.79769e+308 | 0.4 | Radius of the caps and the body |
height | number | 0.002 to 1.79769e+308 | 1.8 | Total height, caps included (at least twice the radius) |
center | list of number | [0.0, 0.0, 0.0] | Where the capsule sits relative to the object's origin (object-space units) |
CharacterController
Character controller: a capsule that walks, jumps and slides along geometry while playing
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
speed | number | 0 to 1.79769e+308 | 5.0 | Walk speed, units per second |
jump_speed | number | 0 to 1.79769e+308 | 7.0 | Upward speed of a jump, units per second |
gravity | number | 0 to 1.79769e+308 | 20.0 | Downward acceleration, units per second squared |
radius | number | 0.05 to 1.79769e+308 | 0.4 | Capsule radius |
height | number | 0.1 to 1.79769e+308 | 1.8 | Capsule height (from the feet up when origin_at_feet, else centred on the object) |
origin_at_feet | boolean | true | The object's position is where its feet stand, and a model is drawn from its feet (new characters). Off = the position is the middle of the capsule, which is what older scenes use: a model with a locomotion Animator is then drawn half the height lower | |
step_height | number | 0 to 1.79769e+308 | 0.3 | Steps up to this tall are walked over (0 = none) |
max_slope | number | 0 to 89 | 50.0 | Slopes steeper than this degrees cannot be climbed |
use_input | boolean | true | Move with the Horizontal / Vertical / Jump input actions | |
face_movement | boolean | true | Turn to face the way it walks | |
camera_relative | boolean | true | Input moves it the way the camera looks: forward is away from the camera, left and right are the camera's. Off = world axes (forward is -Z). New characters have it on; it needs a Camera in the scene | |
face_camera | boolean | false | Always faces the way the camera looks, and side-steps instead of turning: a shooter | |
max_fall_speed | number | 0 to 200 | 0.0 | It never falls faster than this, in metres per second (0 = no limit): a parachute |
elsewhere | boolean | false | Someone on another machine moves it (set by the game) | |
move_input | list of number | [0.0, 0.0] | Scripted walk direction (x, z), added to the input | |
jump | boolean | false | Jump at the next chance (cleared when used) | |
grounded | boolean | false | Runtime: standing on something | |
vertical_speed | number | 0.0 | Runtime: vertical speed |
CircleCollider
Circle collider (2D): radius in world units
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
radius | number | 0.001 to 1.79769e+308 | 3.0 | Radius in world units |
Joint2D
2D joint: ties this 2D body to connected (an object's name; empty = the world). kind Hinge, Fixed, Slider, Spring or Rope
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
kind | string | "Hinge" | Hinge | Fixed | Slider | Spring | Rope | |
connected | string | "" | The object it is joined to ("" = the world) | |
anchor | list of number | [0.0, 0.0] | The joint's point, in this object's own frame (units from its centre) | |
axis | list of number | [1.0, 0.0] | Slider: the way it slides (this object's frame) | |
min | number | 0.0 | Hinge degrees / slider units: the lower limit (min = max = 0: free) | |
max | number | 0.0 | Hinge degrees / slider units: the upper limit | |
stiffness | number | 0 to 100000 | 60.0 | Spring: how hard it pulls back |
damping | number | 0 to 10000 | 2.0 | Spring: how quickly the bouncing dies down |
motor_speed | number | 0.0 | Hinge (degrees per second) or slider (units per second) motor; 0 = none | |
motor_force | number | 0 to 100000 | 50.0 | How strong the motor is |
collide_connected | boolean | false | The two joined objects still collide with each other |
Joint3D
Joint: ties this RigidBody to connected (an object's name; empty = the world). kind Hinge, Fixed, Ball, Slider, Spring or Rope (guide page: Physics)
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
kind | string | "Hinge" | Hinge | Fixed | Ball | Slider | Spring | Rope | |
connected | string | "" | The object it is joined to ("" = the world) | |
anchor | list of number | [0.0, 0.0, 0.0] | The joint's point, in this object's own frame (metres from its centre) | |
axis | list of number | [0.0, 1.0, 0.0] | Hinge: the axis it turns about; slider: the way it slides (this object's frame) | |
min | number | 0.0 | Hinge degrees / slider metres: the lower limit (min = max = 0: free) | |
max | number | 0.0 | Hinge degrees / slider metres: the upper limit | |
stiffness | number | 0 to 100000 | 60.0 | Spring: how hard it pulls back |
damping | number | 0 to 10000 | 2.0 | Spring: how quickly the bouncing dies down |
motor_speed | number | 0.0 | Hinge (degrees per second) or slider (metres per second) motor; 0 = none | |
motor_force | number | 0 to 100000 | 50.0 | How strong the motor is |
collide_connected | boolean | false | The two joined objects still collide with each other |
MeshCollider3D
Mesh collider (3D): collides on the object's mesh (convex hull, or exact triangles when not convex)
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
convex | boolean | true | Convex hull (usable on moving bodies) instead of the exact triangles (static only) |
PhysicsMaterial3D
Physics material (3D): friction and bounciness of this object's colliders
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
friction | number | 0 to 5 | 0.5 | Friction: 0 is ice, 1 is rubber on concrete |
bounciness | number | 0 to 1 | 0.0 | Bounciness: 0 stops dead, 1 keeps all its speed |
PolygonCollider2D
Polygon collider (2D): the convex shape around points ("x,y; x,y; x,y" in the object's own units)
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
points | string | "-0.5,-0.5; 0.5,-0.5; 0,0.5" | The corners, "x,y; x,y; ..." from the object's centre; a shape that bends inwards is wrapped round |
RigidBody
Rigid body kind mirrored onto the physics backend each tick
No fields: having it is what counts.
SphereCollider3D
3D sphere collider: radius in object units (scaled by the object's scale)
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
radius | number | 0.001 to 1.79769e+308 | 0.5 | Radius in object-space units |
center | list of number | [0.0, 0.0, 0.0] | Where the sphere sits relative to the object's origin (object-space units) |
Trigger3D
Trigger zone (3D): colliders detect overlaps (OnTriggerEnter/Exit) but do not block
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
enabled | boolean | true | Turn the zone off without removing the component |
Animation
AnimationEvents AnimationLayers Animator HeadLook IkTarget ModelAnimator SkeletonAnimator2D Timeline
AnimationEvents
Clip events: when the playing clip passes a listed moment, scripts get OnAnimEvent(string name). events: Clip@seconds=Name; Clip@seconds=Name
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
events | string | "Walk@0.25=Footstep; Walk@0.75=Footstep" | Clip@seconds=Name; Clip@seconds=Name; ... |
AnimationLayers
Animation layers over the model's main animation: layers: Clip@Bone*weight; +Clip@Bone*weight (the clip plays on Bone and everything below it, or the whole body without @Bone; weight 0 to 1, default 1; a leading + adds its motion instead of replacing)
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
layers | string | "Wave@Spine*1" | Clip@Bone*weight; +Clip@Bone*weight; ... |
Animator
Animation clip asset path, play-on-start flag, speed multiplier, and an optional state machine (.controller) that picks the clip
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
clip | string | "" | The animation clip to play. | |
playing | boolean | true | Whether the clip is playing. | |
speed | number | 1.0 | How fast the clip plays: 1 is normal, 2 twice as fast. | |
controller | string | "" | The animator controller (states and the ways between them) that drives this object. |
HeadLook
Turns a bone (the head) of this object's model toward another object, over its animation
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
target | string | "" | The object to look at (by name) | |
bone | string | "" | The node that turns (empty: the head) | |
weight | number | 1.0 | How much of the turn shows over the animation, 0 to 1 | |
max_angle | number | 70.0 | The furthest it turns from where the animation points it, in degrees |
IkTarget
Pulls a character's hand or foot (bone) to this object: two-bone IK over its animation
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
character | string | "" | The character's object by name (empty: the one it hangs under) | |
bone | string | "hand.R" | The node of its model that reaches here: a hand or a foot (hand.R, mixamorig:LeftHand) | |
weight | number | 1.0 | How much of the reach shows over the animation, 0 to 1 | |
hint | string | "" | An object the elbow or knee bends toward (empty: the way the animation bends it) | |
bend | list of number | [0.0, 0.0, 0.0] | The way the elbow or knee points, on this object's own axes, in place of a hint (0 0 0: not given) | |
along | list of number | [0.0, 0.0, 0.0] | A hand: the way its fingers point, on this object's own axes (0 0 0: as the arm carries it) | |
palm | list of number | [0.0, 0.0, 0.0] | A hand: the way its palm faces, on this object's own axes | |
curl | number | 0 to 90 | 0.0 | A hand: how far its fingers close, in degrees at each joint |
ModelAnimator
Model animation: which glTF animation of the mesh plays (empty = the first), playing, speed, looping, root motion
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
animation | string | "" | The model's clip to play. | |
playing | boolean | true | Whether the clip is playing. | |
speed | number | 1.0 | How fast the clip plays: 1 is normal. | |
looping | boolean | true | Start the clip again when it ends. | |
root_motion | boolean | false | Let the clip's own movement move the object. | |
locomotion | boolean | false | Pick idle, walk or run from how fast the object moves. | |
idle_animation | string | "Idle" | The clip for standing still. | |
move_animation | string | "Walk" | The clip for walking. | |
walk_speed | number | 1.4 | The speed at which the walk clip looks right. | |
jump_animation | string | "" | The clip for being in the air. | |
run_animation | string | "" | The clip for running. | |
run_speed | number | 3.5 | The speed from which the run clip plays. | |
action | string | "" | A clip to play once on top (an attack, a wave). | |
action_nonce | number | 0.0 | Changes each time the action is asked for again. | |
action_mask | string | "" | The bones the action moves; empty is all of them. | |
clips_from | string | "" | A model to borrow clips from. | |
turn | number | 0.0 | Degrees the chest is turned to the right of the hips, the head staying where it looks (set by the game) | |
stand | number | 0.0 | How much of the way a bent back is stood up, 0 to 1, the head looking on as it did (set by the game) | |
action_holds | boolean | false | Keep the last pose of the action until another comes. | |
moves | string | "" | Whether the object is moving now. |
SkeletonAnimator2D
2D skeletal animation: a skeleton asset (bones, parts, clips) and the clip to play
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
skeleton | string | "" | Project path of the .skel2d.json skeleton | |
animation | string | "" | Clip name (empty = the first) | |
playing | boolean | true | Whether the animation is playing. | |
speed | number | 0 to 1.79769e+308 | 1.0 | Playback speed multiplier |
looping | boolean | true | Start the animation again when it ends. | |
flip_x | boolean | false | Mirror left to right |
Timeline
Plays a .timeline cutscene (camera shots, animations, on/off, sounds, moves, events)
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
asset | string | "" | The .timeline file | |
play_on_start | boolean | true | Start when the game starts | |
looping | boolean | false | Start again when it ends |
Audio
AudioSource
Audio source: clip asset path, volume, looping and play-on-awake flags
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
clip | string | "" | The sound file to play. | |
volume | number | 0 to 1 | 1.0 | Linear volume 0..1 |
looping | boolean | false | Start the sound again when it ends. | |
play_on_awake | boolean | true | Start the sound as soon as the game starts. | |
bus | string | "SFX" | Mixer bus it plays on (Project Settings > Audio) | |
spatial | boolean | false | Quieter and panned with distance from the listener (the Scene camera) | |
radius | number | 0.1 to 1.79769e+308 | 40.0 | Spatial sources are silent at this distance |
pitch | number | 0.1 to 4 | 1.0 | How fast it plays: 1 as recorded, 2 an octave up |
mute | boolean | false | Silences it without losing its place: it keeps playing, you just do not hear it | |
pan | number | -1 to 1 | 0.0 | Which ear it favours when it is not spatial: -1 all left, 0 the middle, 1 all right |
min_distance | number | 0 to 500 | 1.0 | Spatial sources: full volume inside this distance (metres); they fade from here to radius |
rolloff | string | "Linear" | Linear | Logarithmic: how a spatial source fades with distance between min_distance and radius (Logarithmic stays loud closer in and drops off faster, as real sound does) | |
start_delay | number | 0 to 60 | 0.0 | Seconds to wait before it starts, after it is told to play (or the scene starts) |
fade_in | number | 0 to 60 | 0.0 | Seconds it takes to reach its full volume when it starts |
random_pitch | number | 0 to 1 | 0.0 | Each start picks a speed this much faster or slower than pitch (0.1 = up to 10%): footsteps and impacts that do not repeat exactly |
subtitle | string | "" | A caption shown at the bottom of the screen while it plays (when subtitles are on): what is said, for a voice |
Navigation
NavAgent
Navigation agent: walks to its destination around obstacles while playing (speed in units/s)
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
speed | number | 0 to 1.79769e+308 | 3.5 | How fast it walks. |
stopping_distance | number | 0 to 1.79769e+308 | 0.1 | Stops this far from the destination |
destination | list of number | [0.0, 0.0, 0.0] | Where it walks to. | |
has_destination | boolean | false | Walk to the destination (off = stand still) |
Scripts & Data
Layer Replicated Script StreamedScene Tag
Layer
Object layer index 0..=31
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
index | integer | 0 | The layer the object is on (cameras and physics can skip layers). |
Replicated
Network replication: which components of this object the server sends to clients (comma separated)
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
components | string | "Transform,Transform3D" | The components copied to other players in an online game. |
Script
Attached script asset (project-relative path) and whether it is enabled
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
path | string | "" | The script file that runs on this object. | |
enabled | boolean | true | Off: the script does not run. |
StreamedScene
One piece of a big world. Its scene comes in while the game plays when the camera is within load_distance of this object, a few objects a frame with its assets loaded away from the frame, and goes out past unload_distance
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
scene | string | "" | Project-relative path of the scene | |
load_distance | number | 1 to 100000 | 120.0 | How near the camera comes before it loads, in metres |
unload_distance | number | 1 to 100000 | 160.0 | How far the camera goes before it unloads, in metres (kept above load_distance, or a camera on the line would load and unload it over and over) |
Tag
Object tag: a free-form label scripts and filters can match
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
tag | string | "Untagged" | A name to find the object by in scripts. |
UI
UiButton UiCanvas UiDropdown UiGroup UiImage UiInput UiLabel UiLayout UiPanel UiProgressBar UiRect UiScroll UiSlider UiToggle UiTouchButton UiTouchLook UiTouchStick
UiButton
A button: the panel colour is the normal look; it fires action when clicked
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
interactable | boolean | true | Off: the button cannot be pressed and looks greyed. | |
hover_color | list of number | [0.46, 0.57, 1.0, 1.0] | The colour while the pointer is over it. | |
pressed_color | list of number | [0.27, 0.37, 0.84, 1.0] | The colour while it is pressed. | |
disabled_color | list of number | [0.2, 0.22, 0.28, 0.7] | The colour while it cannot be pressed. | |
action | string | "" | Name scripts wait for (UI.Clicked("Play")); empty = the object's name. Built-in actions: scene:next, scene:prev, scene:reload, scene:<name or number>, quit, net:host:<scene>, net:join:<scene>, net:start, net:leave | |
hover_scale | number | 0.5 to 2 | 1.03 | How big the button grows while the pointer is over it (1 = not at all) |
press_scale | number | 0.5 to 2 | 0.97 | How big the button is while pressed (1 = not at all) |
transition | number | 0 to 2 | 0.12 | Seconds the colours and size take to follow the pointer (0 = at once) |
hover_text | list of number | [0.0, 0.0, 0.0, 0.0] | The colour its words turn while the pointer is on it (all 0 = they stay as they are) | |
click_sound | string | "" | Sound file of clicking it | |
hover_sound | string | "" | Sound file of the pointer coming onto it | |
on_click | list of string | [] | On Click: script methods a click calls, in order; each is objectid|Class|Method|argument (the Inspector's On Click list sets it) |
UiCanvas
Root of a game UI: fills the game view, scales from a reference size, picks the reading direction
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
reference | list of number | [1280.0, 720.0] | The size the UI is designed at (pixels) | |
scale_mode | string | "Fit" | Fit | Fill | MatchWidth | MatchHeight | Blend | Constant (Fit keeps all of the reference visible, Fill covers the window, Blend mixes width and height by match_width_height, Constant is scale_factor pixels per unit whatever the window) | |
match_width_height | number | 0 to 1 | 0.5 | Blend only: 0 scales with the width, 1 with the height, in between a mix |
layout_direction | string | "Auto" | Auto (follows the game language: Arabic, Persian, Urdu and Hebrew read right to left) | LeftToRight | RightToLeft | |
visible | boolean | true | Off: the whole canvas is hidden. | |
navigation | boolean | false | Keyboard / gamepad navigation: the Horizontal and Vertical actions move between controls and Submit uses the one in focus (turn off if the game uses those actions to move) | |
scale_factor | number | 0.05 to 16 | 1.0 | Constant only: how many screen pixels one UI unit takes |
min_scale | number | 0 to 1.79769e+308 | 0.0 | The smallest scale the UI may shrink to (0 = no limit): keeps text readable on small screens |
max_scale | number | 0 to 1.79769e+308 | 0.0 | The largest scale the UI may grow to (0 = no limit) |
portrait_reference | list of number | [720.0, 1280.0] | The size the UI is designed at for tall screens (used below portrait_below_aspect) | |
portrait_below_aspect | number | 0 to 1.79769e+308 | 0.0 | Responsive layouts: when the window is narrower than this width / height ratio (for example 1.0) the portrait reference is used instead of the reference (0 = never) |
safe_area | boolean | false | Keep the UI inside the device's safe area (notches, rounded corners, the home bar) on phones and tablets | |
touch_only | boolean | false | Only on touch screens, and only while the game plays: hidden on a computer and over menus, and that is how a game's on-screen controls stay out of the way | |
margin | list of number | [0.0, 0.0, 0.0, 0.0] | Extra space kept free inside the window edges (left, top, right, bottom), in UI units | |
render_mode | string | "Screen" | Screen | World: Screen is drawn over the game's screen; World is a flat panel standing in the scene at this object's Transform 3D (a sign, a terminal, a menu in the world), reference units wide and high | |
world_size | number | 0.0001 to 10 | 0.01 | World only: how many metres one canvas unit takes (0.01: a 1280 x 720 canvas is 12.8 x 7.2 m) |
UiDropdown
A dropdown: click to open the list and pick one of the options
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
options | string | "Option A|Option B|Option C" | The choices, separated by | (for example Low|Medium|High) | |
selected | integer | 0 | The chosen option, counting from 0 | |
size | number | 1 to 1.79769e+308 | 24.0 | How tall the list is. |
color | list of number | [0.96, 0.97, 1.0, 1.0] | The colour of the box. | |
interactable | boolean | true | Off: the list cannot be opened. | |
action | string | "" | Name scripts wait for when a choice is picked (UI.Selected); empty = the object's name |
UiGroup
Fades this UI object and everything under it together (alpha), and can switch all their widgets off (interactable)
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
alpha | number | 0 to 1 | 1.0 | Opacity of the object and everything under it (0 = gone, 1 = as drawn) |
interactable | boolean | true | Its buttons, sliders, toggles, fields and dropdowns take the pointer and keys (off: none under it does) |
UiImage
A picture from the project, tinted
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
image | string | "" | The picture shown. | |
tint | list of number | [1.0, 1.0, 1.0, 1.0] | A colour multiplied into the picture. | |
keep_aspect | boolean | true | Keep the picture's proportions inside the rect | |
image_mode | string | "Simple" | Simple | Sliced | Tiled | Filled (Sliced keeps the picture's corners and stretches only its middle, Tiled repeats it, Filled reveals part of it by fill_amount) | |
slice_border | list of number | [8.0, 8.0, 8.0, 8.0] | Sliced only: the corner size in picture pixels (left, top, right, bottom) | |
raycast_target | boolean | true | Clicks on the picture stop at it: widgets behind it do not hear them (turn off for a decoration that sits over a button) | |
flip_x | boolean | false | Mirror the picture left to right | |
flip_y | boolean | false | Mirror the picture top to bottom | |
tile_scale | number | 0.05 to 16 | 1.0 | Tiled only: how big each repeat is (1 = the picture's own pixels at the canvas scale) |
fill_method | string | "Horizontal" | Filled only: Horizontal | Vertical: the direction the picture is revealed in | |
fill_origin | string | "Start" | Filled only: Start | End: which side it fills from (left / top or right / bottom) | |
fill_amount | number | 0 to 1 | 1.0 | Filled only: how much of the picture shows (a health bar, a cooldown) |
UiInput
A text input: click to type (any language), Enter submits; the panel is its background
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
text | string | "" | What is typed in the box. | |
placeholder | string | "Type here..." | Shown dimmed while the field is empty | |
size | number | 1 to 1.79769e+308 | 24.0 | How big the typed text is. |
color | list of number | [0.96, 0.97, 1.0, 1.0] | The colour of the text. | |
max_length | integer | 0 to 1.79769e+308 | 0 | Most characters allowed (0 = no limit) |
password | boolean | false | Show * instead of the characters | |
interactable | boolean | true | Off: the box cannot be typed in. | |
action | string | "" | Name scripts wait for when Enter is pressed (UI.Submitted); empty = the object's name | |
setting | string | "" | The player's setting it shows and keeps between runs: Name or Address | |
focus_color | list of number | [0.36, 0.48, 1.0, 1.0] | The line round it while it has the keyboard |
UiLabel
Text: a string, or a key of the project's string tables (so it follows the game language)
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
text | string | "Label" | The words shown. | |
key | string | "" | A Localization/*.csv key; when set it replaces text in the game language ({0} takes the object's value) | |
size | number | 1 to 1.79769e+308 | 24.0 | Font size in pixels |
color | list of number | [0.96, 0.97, 1.0, 1.0] | The colour of the words. | |
text_align | string | "Start" | Start | Center | End | Left | Right (Start / End follow the reading direction) | |
text_direction | string | "Auto" | Auto | LeftToRight | RightToLeft (Auto: the canvas direction if it is set, else the text decides) | |
wrap | boolean | true | Break lines at the box's width | |
digits | string | "AsWritten" | AsWritten | ArabicIndic | Persian | Western: which digits to draw | |
font | string | "" | A project font (.ttf / .otf), or Inter / Inter Bold which every game carries; empty = Inter | |
shadow | number | 0 to 1.79769e+308 | 0.0 | A soft drop shadow behind the letters, how far it falls in canvas units (0 = none): keeps text readable over a busy scene |
vertical | boolean | false | Write top to bottom, columns running from right to left (Chinese, Japanese, Korean); with wrap the box's height is the column length | |
spacing | number | 0.0 | Extra room between letters, in canvas units | |
caps | boolean | false | Show the text in capitals, however it is written | |
weight | string | "Regular" | Light | Regular | Medium | SemiBold | Bold | Black: how heavy the letters are (Inter has every weight; another font is drawn heavier) | |
italic | boolean | false | Slanted letters | |
underline | boolean | false | A line under the text | |
strikethrough | boolean | false | A line through the middle of the text | |
auto_size | boolean | false | Best fit: the largest size between min_size and max_size at which the text fits its box (size is not used) | |
min_size | number | 1 to 1.79769e+308 | 10.0 | Auto size: the smallest the text may get |
max_size | number | 1 to 1.79769e+308 | 72.0 | Auto size: the largest the text may get |
vertical_align | string | "Middle" | Top | Middle | Bottom: where the text sits in its box, up and down | |
line_spacing | number | 0.5 to 4 | 1.2 | Room between lines, as a multiple of the font's height |
outline | number | 0 to 1.79769e+308 | 0.0 | A line around every letter, this thick in canvas units (0 = none): keeps text readable over anything |
outline_color | list of number | [0.0, 0.0, 0.0, 1.0] | The colour of the outline | |
overflow | string | "Overflow" | Overflow | Clip | Ellipsis: text too long for its box goes past it, is cut at its edges, or ends in ... |
UiLayout
Container layout: children in a row, a column or a grid (their own placement is ignored)
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
arrange | string | "Vertical" | Horizontal | Vertical | Grid | |
spacing | number | 0 to 1.79769e+308 | 8.0 | The gap between what is inside. |
padding | list of number | [8.0, 8.0, 8.0, 8.0] | Left, top, right, bottom | |
columns | integer | 1 to 1.79769e+308 | 3 | Grid: how many columns |
cell_size | list of number | [96.0, 96.0] | Grid: the size of every cell | |
fill_cross | boolean | false | Row / column: stretch children across the container instead of using their own size | |
cross_align | number | 0 to 1 | 0.0 | Where children sit across the main direction when not stretched: 0 start, 0.5 middle, 1 end |
UiPanel
A filled rectangle: colour, border, optional picture
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
color | list of number | [0.094, 0.106, 0.157, 0.97] | The colour of the box. | |
border_color | list of number | [1.0, 1.0, 1.0, 0.09] | The colour of the edge. | |
border_width | number | 0 to 1.79769e+308 | 1.0 | How thick the edge is. |
image | string | "" | A project picture drawn over the colour (tinted by it); empty = none | |
image_mode | string | "Simple" | Simple | Sliced: Sliced keeps the picture's corners and stretches only its middle (buttons, frames) | |
slice_border | list of number | [8.0, 8.0, 8.0, 8.0] | Sliced only: the corner size in picture pixels (left, top, right, bottom) | |
radius | number | 0 to 1.79769e+308 | 12.0 | Rounded corners: the radius in canvas units (capped at half the shorter side, so a big value makes a pill) |
shadow | number | 0 to 1.79769e+308 | 0.0 | A soft shadow under the panel: how far it lifts off the screen, in canvas units (0 = none) |
gloss | number | 0 to 1 | 0.0 | A light-to-dark sheen from the top to the bottom of the panel (0 = flat colour) |
fade_to | list of number | [0.0, 0.0, 0.0, 0.0] | The colour it fades to at the bottom (all 0 = none) |
UiProgressBar
A progress / health bar: fills from min to max over the panel
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
value | number | 0.5 | How full the bar is. | |
min | number | 0.0 | The value at which the bar is empty. | |
max | number | 1.0 | The value at which the bar is full. | |
fill_color | list of number | [0.3, 0.82, 0.55, 1.0] | The colour of the filled part. | |
fill | string | "Start" | Start | End | Up | Down: where the bar fills from (Start / End follow the reading direction) |
UiRect
UI placement: an anchor preset (or custom anchors), a position from the anchor and a size
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
anchor | string | "Center" | TopLeft | Top | TopRight | Left | Center | Right | BottomLeft | Bottom | BottomRight | StretchAll | StretchTop | StretchBottom | StretchLeft | StretchRight | StretchX | StretchY | Custom | |
anchor_min | list of number | [0.0, 0.0] | Custom only: where the rect's corner is pinned in the parent (0..1) | |
anchor_max | list of number | [0.0, 0.0] | The corner of the parent's box the far corner of this one stays tied to. | |
pivot | list of number | [0.0, 0.0] | Custom only: the point of the rect that sits on the anchor (0..1) | |
position | list of number | [0.0, 0.0] | Offset from the anchor; on a stretched axis the inset from the left / top edge | |
size | list of number | [200.0, 60.0] | Width and height; on a stretched axis the inset from the right / bottom edge | |
rotation | number | 0.0 | Degrees, counter-clockwise, about the middle of the rect. Turns this object's drawing (panel, picture, text) and everything under it. Scripts: UI.SetRotation | |
turn_about | list of number | [0.5, 0.5] | The point the rotation turns about, as a fraction of the rect (0 0 = top-left, 0.5 0.5 = middle). Scripts: UI.SetRotationPivot | |
only_on | string | "" | Shown only with this kind of input: touch or keys; empty is always. For words that name keys, or a finger |
UiScroll
A scroll view: its children scroll with the mouse wheel or a drag and are clipped to its rect
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
scroll | list of number | [0.0, 0.0] | How far the content is scrolled (x, y), in canvas pixels | |
vertical | boolean | true | Allow scrolling up and down. | |
horizontal | boolean | false | Allow scrolling left and right. | |
wheel_speed | number | 0 to 1.79769e+308 | 60.0 | Pixels per mouse-wheel notch |
scrollbar | boolean | true | A bar at the right edge shows how much is in view; its thumb can be dragged |
UiSlider
A slider: drag along the panel to change the value
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
value | number | 0.5 | Where the handle is. | |
min | number | 0.0 | The value at the left end. | |
max | number | 1.0 | The value at the right end. | |
step | number | 0 to 1.79769e+308 | 0.0 | Snap the value to multiples of this (0 = smooth) |
interactable | boolean | true | Off: the slider cannot be dragged. | |
fill_color | list of number | [0.36, 0.48, 1.0, 1.0] | The colour of the filled part. | |
handle_color | list of number | [1.0, 1.0, 1.0, 1.0] | The colour of the handle. | |
setting | string | "" | The player's setting it changes, kept between runs: Volume, Music or Mouse |
UiToggle
A toggle: click to switch on and off
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
checked | boolean | false | Whether the switch is on. | |
interactable | boolean | true | Off: the switch cannot be changed. | |
check_color | list of number | [0.36, 0.48, 1.0, 1.0] | The colour of the tick. | |
action | string | "" | Name scripts wait for when it is clicked; empty = the object's name | |
group | string | "" | Toggles sharing a group name are radio buttons: turning one on turns the others off (a tab bar) | |
target | string | "" | Name of an object that is shown while this toggle is on and hidden while it is off (a tab's page) | |
setting | string | "" | The player's setting it changes, kept between runs: Fullscreen |
UiTouchButton
An on-screen button: presses an input action while a finger is on it
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
action | string | "" | The input action it presses (Fire, Jump, Reload...) | |
toggle | boolean | false | A tap stays on until the next tap (aiming), instead of lasting as long as the finger | |
look | boolean | false | Dragging the finger on it turns the view as well (a fire button, to aim while shooting) | |
over_menus | boolean | false | It stays when a menu or the bag is over the game: the way to close them | |
pressed_color | list of number | [1.0, 0.75, 0.2, 0.75] | The colour while it is pressed. |
UiTouchLook
An area where a drag turns the view, under the other controls
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
speed | number | 0.05 to 8 | 1.0 | How fast a drag turns the view |
UiTouchStick
An on-screen stick: a thumb pushes two input actions
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
action_x | string | "Horizontal" | The input action left and right set | |
action_y | string | "Vertical" | The input action up and down set | |
reach | number | 8 to 1.79769e+308 | 80.0 | How far the knob goes from the middle, in UI units |
follows_finger | boolean | true | The stick comes to where the thumb lands in its rect, so it is never missed; off, it stays in the middle of the rect | |
run_action | string | "" | An input action held while the knob is pushed all the way (Sprint); empty for none | |
rest | list of number | [0.5, 0.5] | Where it waits with no thumb on it, as a fraction of the rect | |
ring_color | list of number | [1.0, 1.0, 1.0, 0.28] | The colour of the ring. | |
knob_color | list of number | [1.0, 1.0, 1.0, 0.55] | The colour of the knob. |
Simulation
Arcade BattleBot BattleHud BattleMatch BoatController ClothSim DamageZone Damageable DayNight EnemyAI Floater FluidSim Footsteps Fracture GameRules Grass HeldGun Inventory Loot MeleeAttack Ocean OnBone Parachute PauseMenu RaceRival RaceTrack RopeSim SafeZone SceneLook Shooter SmokeSim SoftBodySim Spawner SprayCan ThirdPersonCamera Vehicle Wander Wheel Wind
Arcade
A classic game kept by the engine with no script: pong, snake, breakout, flappy or tetris
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
game | string | "pong" | pong | snake | breakout | flappy | tetris | tictactoe | four | checkers | chess | memory | blackjack | solitaire | sudoku | sliding | mines | clicker | |
goal | number | 1 to 1000 | 5.0 | Pong: the points that win |
pace | number | 0.2 to 5 | 1.0 | How fast it plays |
score_text | string | "{score}" | The line at the top: {score} {other} {lives} | |
won_text | string | "" | The line on winning | |
lost_text | string | "" | The line on losing | |
score | number | 0.0 | (set by the game) | |
other | number | 0.0 | The other side's points, or the lives left (set by the game) | |
won | boolean | false | (set by the game) | |
lost | boolean | false | (set by the game) | |
timer | number | 0.0 | (set by the game) | |
moves | number | 0.0 | (set by the game) | |
velocity | list of number | [0.0, 0.0, 0.0] | (set by the game) | |
state | string | "" | (set by the game) | |
held | string | "" | (set by the game) | |
level | number | 1 to 3 | 2.0 | Board games: how well the computer plays, 1 to 3 |
seed | number | 0.0 | The deal, the board or the shuffle: the same number gives the same game; 0 = a new one each time | |
status | string | "" | What is happening, in words: the HUD's {status} (set by the game) | |
spec | string | "" | game "spec": the game in the game language (JSON: things, start, spawn, touch, win, lose) | |
feature | string | "" | The name the game's stored tests go by |
BattleBot
A fighter that plays by itself: it finds a gun, keeps inside the SafeZone, walks over the ground of a Terrain around what is solid, and shoots any other fighter it sees (not one of its team). It needs a Damageable, and stands on its origin. A ModelAnimator with locomotion shows it walking
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
sight | number | 1 to 2000 | 120.0 | How far it sees another fighter, in metres |
skill | number | 0 to 1 | 0.5 | How well it shoots: 0 wild, 1 dead on |
speed | number | 0.1 to 60 | 5.5 | Running speed in metres per second |
state | string | "" | What it is doing now: Falling, Arming, Moving or Fighting (set by the game) | |
target | string | "" | The name of what it is shooting at (set by the game) | |
team | string | "" | Bots of the same team never pick each other to shoot (blank: everyone for themselves) |
BattleHud
On a UI object of a last-one-standing game: the game keeps it up to date with no script. show: Alive, Kills, Ammo, Zone or EndTitle fill a UiLabel, Health a UiProgressBar, and End shows the object only when the match is over. create_ui {template:"BattleHud"} makes the whole screen
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
show | string | "Alive" | Alive | Kills | Ammo | Reserve | Zone | Health | HealthLag | HealthNumber | Gun1 | Gun2 | Meds | Speed | Prompt | Hint | HintKey | Progress | ProgressLabel | Feed | KillNote | Hurt | HurtFrom | Crosshair | HitMark | Bearing | CompassZone | BigMap | MapYou | MapZone | MapNext | End | EndTitle | EndNote | EndKills | EndDamage | EndTime | EndAlone | EndMenu | Lobby | LobbyPlayers | LobbyStart | |
map_side | number | 8 to 2000 | 200.0 | Map parts: how wide the map they stand on is, on the canvas |
value | number | 0.0 | Bearing and Crosshair: which way it stands, in degrees clockwise from the top |
BattleMatch
Runs a last-one-standing match: at the start every fighter (each BattleBot, and the player) is put high over a random piece of land to come down, and the match counts who is left. It is Won when the player is the last, Lost when the player dies. Read state, alive, total, kills and place for a HUD
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
player | string | "Player" | The name of the object the person plays | |
drop_height | number | 0 to 2000 | 220.0 | How high over the ground everyone starts, in metres (0 = where they stand) |
drop_radius | number | 0 to 10000 | 800.0 | How far from this object they may come down, in metres |
fall_speed | number | 0.1 to 200 | 16.0 | How fast they fall on the way down, in metres per second |
seed | integer | 1 | Which places they drop on: the same seed drops them the same way | |
state | string | "" | Playing, Won or Lost (set by the game) | |
alive | integer | 0 | Fighters alive (set by the game) | |
total | integer | 0 | Fighters at the start (set by the game) | |
kills | integer | 0 | How many the player has killed (set by the game) | |
place | integer | 0 | Where the player came: 1 is the winner (set by the game) | |
online | boolean | false | The match is played over a network (set by the game) | |
start_gun | string | "" | The name of a gun object (a Loot, which can be switched off) that those with an Inventory start with | |
win_sound | string | "" | Sound file of the player winning | |
lose_sound | string | "" | Sound file of the player losing |
BoatController
Sails or rows the object with the Horizontal and Vertical input (A/D or left/right turn, W/S or up/down sail and brake, or a gamepad stick): it speeds up along its facing, turns more the faster it goes, slows down by itself and is held back a little by the water. Put it with a Floater on the boat. A boat faces -Z at yaw 0
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
max_speed | number | 0.5 to 60 | 8.0 | Top speed in metres per second |
acceleration | number | 0.1 to 30 | 2.5 | How fast it speeds up, in metres per second each second |
turn_rate | number | 5 to 360 | 60.0 | How fast it can turn at best, in degrees per second (it turns less when slow, so it cannot spin on the spot) |
drag | number | 0 to 5 | 0.4 | How much it slows down each second when you are not sailing it (water drag) |
use_input | boolean | true | Read the input actions (off: a script sets throttle and rudder) | |
throttle | number | -1 to 1 | 0.0 | Sail trim and throttle, set by a script when use_input is off (-1 back, 1 full) |
rudder | number | -1 to 1 | 0.0 | Rudder, set by a script when use_input is off (-1 left, 1 right) |
speed | number | 0.0 | Speed now in metres per second (read it from a script: wake, sound, speedometer) |
ClothSim
Cloth that hangs, blows in the wind and drapes over colliders while the scene plays
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
width | number | 0.1 to 60 | 2.0 | Width in metres |
height | number | 0.1 to 60 | 2.0 | Height (or depth, for a flat sheet) in metres |
columns | integer | 4 to 80 | 24 | Particles across: more is smoother and slower |
rows | integer | 4 to 80 | 24 | Particles down |
plane | string | "Vertical" | Vertical | Horizontal: a hanging sheet (curtain, flag) or a flat one (tablecloth, sail) | |
pin | string | "TopEdge" | TopEdge | TopCorners | Corners | None: what holds the cloth up | |
stiffness | number | 0 to 1 | 1.0 | How stiff the weave is |
bend | number | 0 to 1 | 0.15 | How much it resists folding sharply (0 = silk, 1 = card) |
damping | number | 0 to 1 | 0.55 | The share of its speed it keeps each second (low = heavy air drag) |
wind | list of number | [0.0, 0.0, 0.0] | Wind velocity in metres per second | |
gust | number | 0 to 1 | 0.3 | How much the wind gusts |
collide | boolean | true | Bounce off the box, sphere and capsule colliders of the scene | |
color | list of number | [0.8, 0.25, 0.25] | Colour of the cloth | |
material | string | "" | A material for the cloth ("" = the colour above) | |
tearable | boolean | false | The cloth tears when it is pulled too hard | |
tear_stretch | number | 1.1 to 5 | 1.6 | How far a thread stretches (times its length) before it tears |
self_collide | boolean | false | The cloth is stopped by itself: folds rest on each other instead of passing through (slower) | |
cut_point | list of number | [0.0, 0.0, 0.0] | Cutting: where a cut is made (world position); a script sets it, then adds one to cut_serial | |
cut_radius | number | 0.01 to 5 | 0.15 | Cutting: how wide a cut is, in metres |
cut_serial | integer | 0 | Cutting: every time this number changes, the cloth is cut at cut_point (from a script: go.Set("ClothSim", "cut_serial", n + 1)) | |
mass | number | 0 to 1000 | 2.0 | Weight in kilograms, shared over its particles: what it weighs on a rigid body it rests on and how hard it knocks one it hits (0 = it pushes nothing) |
DamageZone
A zone that hurts (lava, spikes, fire) or heals (a health pack, a healing spring) every Damageable that is within radius of the object. Positive amount hurts, negative heals. per_second makes it continuous; otherwise it acts once each time something steps in. once uses it up: the zone and its object are switched off after the first time (a pickup)
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
amount | number | -10000 to 10000 | 10.0 | Hit points taken off (negative heals) |
per_second | boolean | true | The amount is per second while something is in the zone (off: once each time it steps in) | |
radius | number | 0.1 to 100 | 1.5 | How far from the object it reaches, in metres |
once | boolean | false | Used up by the first thing that triggers it: the object is switched off (a health pack) | |
enabled | boolean | true | Switched on |
Damageable
Hit points: what can be hurt and die. Enemies (EnemyAI) and damage zones (DamageZone) hurt it. At zero dead becomes true, and the object is switched off (destroy_on_death) or, when it has a Fracture set to Manual, breaks into pieces. Read health from a script (a health bar) with go.Get
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
max_health | number | 1 to 100000 | 100.0 | Most hit points it can have |
health | number | 0 to 100000 | 100.0 | Hit points now |
regen | number | 0 to 1000 | 0.0 | Hit points it heals each second by itself |
invulnerable | boolean | false | Damage does nothing (healing still works) | |
destroy_on_death | boolean | true | At zero hit points the object is switched off (with a Fracture on Manual it breaks instead) | |
dead | boolean | false | True once it has died (set by the game) | |
hurt_sound | string | "" | Sound file of it being hurt | |
death_sound | string | "" | Sound file of it dying | |
vest | number | 0.0 | How much of a hit to the body its vest stops, 0 to 1 (set by the game) | |
vest_left | number | 0.0 | How much of a beating the vest can still take (set by the game) | |
helmet | number | 0.0 | How much of a hit to the head its helmet stops, 0 to 1 (set by the game) | |
helmet_left | number | 0.0 | How much of a beating the helmet can still take (set by the game) | |
boost | number | 0.0 | Hit points still to come from what was drunk (set by the game) | |
boost_rate | number | 0.0 | How many of them come each second (set by the game) | |
worn | list of integer | [0, 0, 0] | The level of the vest, helmet and pack it has on, 0 none (set by the game) |
DayNight
A day and night cycle: the sun (and at night the moon) crosses the sky, and the sky, the ambient light and the fog colour follow the hour of the day, with orange sunrises and sunsets and a dark blue night. It takes over the scene's Directional Light and sky while it exists. Set hour to pick a time; with auto on the hour moves while the game plays
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
hour | number | 0 to 24 | 10.0 | The hour of the day, 0 to 24 (6 sunrise, 12 noon, 18 sunset, 0 midnight); in the editor it shows that time of day |
auto | boolean | true | The hour moves on its own while the game plays | |
day_length | number | 5 to 36000 | 240.0 | How many real seconds a whole day (24 hours) takes while it plays |
sunrise | number | 0 to 12 | 6.0 | The hour the sun comes up |
sunset | number | 12 to 24 | 18.0 | The hour the sun goes down |
moonlight | number | 0 to 1 | 0.15 | How bright the moonlight is at night (0 = pitch dark) |
EnemyAI
An enemy that wanders near where it starts, chases its target when it comes within range and attacks it up close, hurting the target's Damageable. It walks straight at the target and slides along walls (box, sphere and capsule colliders); it stands still when its own Damageable is dead. Put a ModelAnimator with locomotion on it and it shows idle, walk and run by how fast it really moves
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
target | string | "Player" | The name of the object to chase and attack | |
detect_range | number | 0.5 to 200 | 12.0 | It notices the target this close, in metres |
lose_range | number | 0.5 to 300 | 18.0 | It gives up the chase when the target is farther than this |
attack_range | number | 0.3 to 50 | 1.8 | It attacks from this close |
damage | number | 0 to 10000 | 10.0 | Hit points taken off the target by each attack |
cooldown | number | 0.1 to 60 | 1.2 | Seconds between attacks |
speed | number | 0.1 to 60 | 3.5 | Chase speed in metres per second |
wander_radius | number | 0 to 100 | 4.0 | It wanders within this distance of where it started (0 = it stands still until it sees the target) |
state | string | "Idle" | What it is doing now: Idle, Wander, Chase or Attack (set by the game) |
Floater
Makes the object float on an Ocean: it rises and falls with the waves and leans (pitch and roll) with their slope while the scene plays. Its own turn about the vertical axis and its sideways movement are left to you (a script steering a boat). Children of the object ride with it. Do not also give it a RigidBody
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
ocean | string | "" | The name of the Ocean object to float on ("" = the first Ocean in the scene) | |
offset | number | -10 to 10 | 0.0 | How far the object's origin sits above the water, in metres (negative = sunk into it: a hull's origin at its deck sits low) |
length | number | 0.2 to 100 | 4.0 | Length of the thing, front to back, in metres: the waves are read at the bow and stern this far apart to find the pitch |
width | number | 0.2 to 100 | 2.0 | Width of the thing, side to side, in metres: the waves are read at its two sides to find the roll |
tilt | number | 0 to 1 | 0.8 | How much it leans with the waves (0 = it only rises and falls, 1 = it follows the surface closely) |
drift | number | 0 to 1 | 0.6 | How much the water carries it sideways: the current and the push of the swell (0 = it stays where you put it, 1 = it drifts like a cork) |
response | number | 0.5 to 40 | 5.0 | How quickly it follows the water: low is heavy and slow (a ship), high is light and quick (a buoy) |
FluidSim
A fluid of particles in a box: it flows, pours, splashes and fills what it is poured into while the scene plays
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
box_size | list of number | [2.0, 1.5, 1.0] | Size of the box the fluid stays in (centred on the object) | |
mode | string | "Block" | Block | Emitter | Empty: start with a block of fluid, pour more in from the top, or begin empty (then use Emitter) | |
fill | list of number | [0.35, 0.7, 1.0] | Block: how much of the box the starting block fills along each axis (from the left, bottom and back) | |
spacing | number | 0.03 to 0.5 | 0.09 | Distance between particles in metres: smaller is more detailed and much slower |
viscosity | number | 0 to 1 | 0.04 | 0 = water, 1 = syrup |
cohesion | number | 0 to 1 | 0.15 | How strongly it holds together (drops, surface tension) |
max_particles | integer | 16 to 8000 | 3000 | Most particles at once |
emit_rate | number | 1 to 2000 | 150.0 | Emitter: particles poured in per second |
color | list of number | [0.18, 0.5, 0.95] | Colour of the fluid | |
opacity | number | 0.1 to 1 | 0.8 | 1 = solid, lower = see-through |
collide | boolean | true | Flow round and over the colliders of the scene | |
surface | string | "Smooth" | Smooth | Spheres: draw the water as one smooth surface, or as the particles | |
buoyancy | boolean | true | Push rigid bodies: things lighter than water float, heavier ones sink, and the water slows what moves through it | |
wave_height | number | 0 to 3 | 0.0 | Waves: a paddle on the left wall of the box swings out and back this far (metres) and sends waves across the water (0 = still water; needs a box that is longer than it is deep) |
wave_period | number | 0.5 to 10 | 2.0 | Waves: seconds for one swing of the paddle (shorter = more, closer waves) |
foam | number | 0 to 1 | 0.5 | Foam and spray thrown off fast, broken-up water (crests, splashes, pouring): white bits that fly, land and float on the water, then fade (0 = none) |
Footsteps
A step sound for each stride its object walks or runs on the ground, by a script or anything else
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
clip | string | "" | Sound file of one step | |
stride | number | 0.1 to 20 | 1.5 | Metres between two steps |
volume | number | 0 to 1 | 0.35 | How loud |
radius | number | 1 to 1000 | 30.0 | Metres away it can no longer be heard |
Fracture
Makes the object shatter into Voronoi pieces that fall as real rigid bodies, from where it was hit
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
pieces | integer | 2 to 120 | 24 | How many pieces |
seed | integer | 0 to 100000 | 1 | Another number gives another break pattern |
impact_bias | number | 0 to 1 | 0.8 | How many pieces gather where it was hit (0 = even pieces, 1 = small shards at the hit and big chunks away from it) |
relax | integer | 0 to 4 | 1 | Rounds of evening out the pieces |
trigger | string | "OnImpact" | OnImpact | OnPlay | Manual: it breaks when something hits it fast enough, as soon as the game starts, or when broken is set to true | |
impact_speed | number | 0.1 to 100 | 3.0 | OnImpact: how fast (metres per second) something must hit it to break it |
explosion | number | 0 to 30 | 2.5 | How fast the pieces fly outward from the hit, in metres per second |
broken | boolean | false | Manual: set to true while playing to break it now | |
inner_color | list of number | [0.55, 0.5, 0.45] | Colour of the faces the break opens up (the inside of the pieces) | |
dust | number | 0 to 3 | 1.0 | Dust: a cloud of dust and grit thrown up when it breaks (0 = none, 1 = a normal cloud, 3 = a thick one) |
dust_color | list of number | [0.6, 0.57, 0.52] | Colour of the dust | |
preview | boolean | false | Show the break pattern in the editor: the pieces drawn a little apart, each in its own colour (a change of pieces or seed shows at once) |
GameRules
A small game's rules, with no script: Collect, Survive, Race or Hunt, and the words on its HUD
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
kind | string | "Collect" | Collect | Survive | Race | Hunt (items: "Bear:Bears,Wolf:Wolves", the herds hunted; {quests} and {level} on the HUD) | |
player | string | "Player" | The object that plays | |
items | string | "Coin" | Collect: what is collected: objects called this and a number | |
goal | number | 1 to 1000 | 10.0 | How many to collect, waves to beat or laps to drive |
reach | number | 0.1 to 50 | 1.8 | How near counts, in metres |
score_text | string | "Score {score}" | The line at the top: {score} {goal} {wave} {time} | |
won_text | string | "" | The line on winning | |
lost_text | string | "" | The line on losing | |
score | number | 0.0 | (set by the game) | |
seconds | number | 0.0 | (set by the game) | |
won | boolean | false | (set by the game) | |
lost | boolean | false | (set by the game) | |
track | list of number | [0.0, 0.0, 0.0] | Race: the track's straight, its bends' radius and its width | |
next | number | 0.0 | (set by the game) |
Grass
Grass around the camera, on the object's Terrain, wherever its first layer shows
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
density | number | 0 to 40 | 7.0 | Tufts on each square metre close by |
reach | number | 8 to 300 | 70.0 | How far from the camera it grows, in metres |
height | number | 0.05 to 3 | 0.36 | How tall it stands, in metres |
enabled | boolean | true | Draw grass on the terrain. |
HeldGun
On a child of a fighter: it is shown only while the fighter has a gun (with only, a gun of that length). The gun in its hands, and the IkTargets that grip it, so hands reach for it only when it is there
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
enabled | boolean | true | Switched on | |
only | string | "" | Long = only with a long gun, Short = only with a short one (a left hand reaches further for a rifle), empty = with any | |
shows_model | boolean | false | It takes on the model of the gun in hand | |
lowered | boolean | false | It has come down with someone crouching (set by the game) | |
part | string | "" | Gun = this is the gun, Right or Left = where that hand goes: the game then keeps it in place, with the butt in the shoulder and the hands where the gun says. Empty = it stays where it was put | |
shoulder | list of number | [0.0, 0.0, 0.0] | With a part: the right shoulder joint, from the object of the one holding it, who faces -z | |
low | number | 0.0 | How far down it has come so far (set by the game) | |
prone_shoulder | list of number | [0.0, 0.0, 0.0] | With a part: the right shoulder joint of the one holding it lying on their front, from their object, worked out from their prone clip when they are made; [0, 0, 0] = they cannot lie down, and a gun is held lower instead (set by the game) | |
lie | number | 0.0 | How far it has gone from standing to lying, 0 to 1 (set by the game) |
Inventory
Two guns to swap between and med kits to use when it suits: without it what is walked over works at once
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
max_meds | integer | 0 to 100 | 5 | How many med kits it can carry |
heal_seconds | number | 0 to 60 | 4.0 | Seconds a med kit takes: firing stops it, and keeps the kit |
swap_action | string | "Swap" | The input action that changes to the other gun (Swap = Q or the gamepad's right shoulder) | |
take_action | string | "Take" | The input action that takes the gun lying here for the one in hand (Take = E or the gamepad's D-pad up) | |
heal_action | string | "Heal" | The input action that uses a med kit (Heal = H or the gamepad's D-pad down) | |
throw_action | string | "Throw" | The input action that throws a grenade (Throw = G or the gamepad's left stick) | |
crouch_action | string | "Crouch" | The input action that crouches and stands up again (Crouch = C or the gamepad's right stick) | |
prone_action | string | "Prone" | The input action that lies down on the front and gets up again (Prone = Z): a fighter lying down crawls, is hard to hit and holds the gun along the ground | |
first_gun | string | "" | The first gun carried (set by the game) | |
second_gun | string | "" | The second gun carried (set by the game) | |
holding | integer | 0 | Which one is in hand: 0 or 1 (set by the game) | |
meds | integer | 0 | Med kits carried (set by the game) | |
healing | number | 0.0 | Seconds of using a med kit still to go (set by the game) | |
offer | string | "" | The gun lying here that could be taken (set by the game) | |
healing_of | number | 0.0 | How long the thing being used takes (set by the game) | |
using | string | "" | What the screen says while something is used (set by the game) | |
bag | string | "" | What is in the bag, a line for each kind of thing: kind|name|how many|level (set by the game) | |
room | number | 100.0 | How much the bag holds (set by the game) | |
carried | number | 0.0 | How much is in the bag (set by the game) | |
vest | integer | 0 | The level of the vest worn, 0 for none (set by the game) | |
helmet | integer | 0 | The level of the helmet worn, 0 for none (set by the game) | |
backpack | integer | 0 | The level of the backpack worn, 0 for none (set by the game) | |
first_parts | string | "" | What is fitted to the first gun (set by the game) | |
second_parts | string | "" | What is fitted to the second gun (set by the game) |
Loot
Something on the ground that a fighter takes by walking over it, and that then disappears. kind Gun gives a Shooter with these numbers, or swaps for a better one; Ammo adds amount rounds to what is carried; Health heals amount. Bots go and fetch what they lack
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
kind | string | "Gun" | Gun | Ammo | Health | Vest | Helmet | Backpack | Attachment | Grenade (damage is what it does close by; 0 is a smoke grenade) | |
amount | number | 0 to 100000 | 30.0 | Ammo: rounds. Health: hit points. Gun: rounds carried besides a full magazine |
radius | number | 0.1 to 50 | 1.6 | How close a fighter has to come, in metres |
damage | number | 0 to 10000 | 20.0 | Gun: hit points a shot takes |
cooldown | number | 0.02 to 30 | 0.12 | Gun: seconds between shots |
magazine | integer | 1 to 1000 | 30 | Gun: rounds a magazine holds |
reload_seconds | number | 0 to 30 | 2.2 | Gun: seconds a reload takes |
spread | number | 0 to 45 | 1.0 | Gun: how far a shot may stray, in degrees |
speed | number | 1 to 2000 | 300.0 | Gun: how fast a shot flies, in metres per second |
recoil | number | 0 to 20 | 0.0 | Gun: how far each shot kicks the player's view up, in degrees; a long burst also pulls to the sides, the same way every time |
drop | number | 0 to 100 | 9.8 | Gun: how fast its shots fall, in metres per second each second |
sound | string | "" | Sound file of taking it up | |
label | string | "" | What it is called on the player's screen; empty = the object's name | |
shot_sound | string | "" | Gun: sound file of a shot | |
reload_sound | string | "" | Gun: sound file of a reload | |
hit_sound | string | "" | Gun: sound file the player hears when a shot hits someone | |
model | string | "" | Gun: the model shown in the hands of whoever has it (with a HeldGun that shows_model) | |
short | boolean | false | Gun: short enough for the left hand to hold it by the right (a pistol) | |
grip | list of number | [0.0, 0.0, 0.0] | Gun: where the right wrist goes on its model, in the model's own metres, -z towards the muzzle | |
fore | list of number | [0.0, 0.0, 0.0] | Gun: where the left wrist goes on its model | |
butt | list of number | [0.0, 0.0, 0.0] | Gun: the point of its model that sits in the shoulder | |
muzzle | list of number | [0.0, 0.0, 0.0] | Gun: the end of its barrel | |
rail | list of number | [0.0, 0.0, 0.0] | Gun: where a scope sits; 0 0 0 = it has one of its own, or none fits | |
lasts | number | 0 to 600 | 0.0 | Health: seconds it goes on healing for once used; 0 = all at once |
held_size | number | 0 to 10 | 0.0 | Gun: how big its model is drawn in the hands; 0 = a gun with no places given, which is held as an ordinary rifle would be |
calibre | string | "" | Gun and Ammo: the rounds it takes, such as 5.56, 7.62, 9 mm or 12 gauge; empty fits anything else that is empty | |
level | integer | 1 to 3 | 1 | Vest, Helmet and Backpack: how good it is, 1 to 3 |
use_seconds | number | 0 to 60 | 0.0 | Health: seconds it takes to use (0 = the Inventory's heal_seconds) |
fits | string | "" | Attachment: Scope (level 1, 2 or 3 is 2, 4 or 8 times), Magazine, Silencer or Grip |
MeleeAttack
A melee attack for the player or an enemy: when the input action is pressed it hurts every Damageable (not itself) within range in front of it (inside arc degrees), then waits cooldown. It needs no script: a sword is this on the player. The attacker faces -Z at yaw 0, so a character that turns to walk faces its swing
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
action | string | "Fire" | The input action that swings it (Fire = left mouse button, Enter or the gamepad's West button; Jump = Space) | |
damage | number | 0 to 10000 | 25.0 | Hit points taken off each thing hit |
range | number | 0.2 to 50 | 2.2 | How far the swing reaches, in metres |
arc | number | 10 to 360 | 140.0 | How wide the swing is, in degrees (360 hits all round) |
cooldown | number | 0.05 to 30 | 0.5 | Seconds between swings |
knockback | number | 0 to 50 | 3.0 | How hard what is hit is pushed back, in metres per second of shove |
last_hit | string | "" | The name of what the last swing hit (set by the game) |
Ocean
An open sea of moving waves (a sum of Gerstner waves: sharp crests, broad troughs, foam on the tallest), drawn as one surface that is shaped by the wave formula every frame. The object's height is the still water level. Boats and anything with a Floater ride it
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
size | number | 10 to 30000 | 200.0 | Size of the square of sea that is drawn, in metres (it is centred on the object; the sea seems to go on to the horizon when it is bigger than what the camera sees, or with fog) |
resolution | integer | 8 to 220 | 180 | Squares along each side of the sea: more is smoother and slower (110 is good, over 160 costs frame rate) |
wave_height | number | 0 to 12 | 1.2 | How high the biggest waves rise above still water, in metres (0.3 calm, 1 to 2 moderate, 4 and over a storm) |
wavelength | number | 1 to 200 | 18.0 | Distance from crest to crest of the main swell, in metres |
wind_direction | number | -360 to 360 | 30.0 | The way the wind blows from, in degrees round the vertical axis (the waves travel the other way) |
choppiness | number | 0 to 1 | 0.5 | How sharp the crests are: 0 rolling swell, 1 peaked, almost breaking |
speed | number | 0 to 4 | 1.0 | How fast the waves travel (1 is natural) |
waves | integer | 3 to 8 | 6 | How many waves are added together: more is more natural |
seed | integer | 0 to 100000 | 7 | Another number gives another sea |
color | list of number | [0.03, 0.22, 0.36] | Colour of the deep water (the troughs and the open sea are shaded from it, the crests lighter) | |
shallow_color | list of number | [0.12, 0.62, 0.62] | Colour of the shallows: where the water is under about 4 m deep over a floor (an island, a beach, a sand bank: any collider top under the water), it turns this colour | |
current | list of number | [0.0, 0.0] | A steady current in metres per second along x and z: anything with a Floater is carried by it | |
opacity | number | 0.1 to 1 | 0.92 | 1 = solid, lower = see-through |
foam | number | 0 to 1 | 0.5 | White foam on the tallest crests (0 = none) |
material | string | "" | A material for the water ("" = the colour above) |
OnBone
Goes with a bone of its parent's model: a helmet, a pack
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
bone | string | "Head" | The node of the model it goes with (Head, mixamorig:Spine2) | |
at | list of number | [0.0, 0.0, 0.0] | Where it is on the model at rest, on the model's own axes and in its own units, as are turn and size | |
turn | list of number | [0.0, 0.0, 0.0] | How it is turned, in degrees | |
size | list of number | [1.0, 1.0, 1.0] | How big it is |
Parachute
On a child of a fighter: it is shown only while the fighter comes down at the start of a match, a parachute
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
enabled | boolean | true | Switched on |
PauseMenu
A pause screen: this object appears when action is pressed, the game stands still and the pointer is free. Pressing it again, or a button with the action resume, goes back
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
action | string | "Cancel" | The input action that opens and closes it (Cancel = Escape or the gamepad's East button) |
RaceRival
A car the engine drives, for GameRules Race or Circuit
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
speed | number | 1 to 120 | 30.0 | Metres per second |
next | number | 0.0 | (set by the game) | |
laps | number | 0.0 | (set by the game) | |
lane | number | -20 to 20 | 0.0 | On a circuit: where on the road it likes to drive, in metres off the middle (positive right) |
skill | number | 0.3 to 1.2 | 0.9 | On a circuit: how much of its top speed it uses in the bends. 1 drives at the limit and makes mistakes less often than it should |
along | number | 0.0 | On a circuit: metres driven along the road since the start line, laps included (set by the game) | |
now | number | 0.0 | On a circuit: how fast it is going now, metres per second (set by the game) |
RaceTrack
Makes the Spline on this object a circuit: the road width wide along its closed curve, with shoulder of run-off each side and a wall beyond. Cars grip the road, slide on the shoulder and the grass, and scrape the wall; GameRules Circuit counts laps along it
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
width | number | 4 to 60 | 14.0 | Width of the road in metres |
shoulder | number | 0 to 40 | 4.0 | Run-off between the road and the wall, in metres |
wall | boolean | true | A wall stands at the edge of the run-off: a car cannot pass it |
RopeSim
A rope that hangs from the object, swings and drapes over colliders while the scene plays
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
length | number | 0.1 to 100 | 3.0 | Length in metres |
segments | integer | 2 to 200 | 24 | Segments: more bends more smoothly and costs more |
radius | number | 0.005 to 1 | 0.04 | Thickness in metres |
pin | string | "First" | First | Ends | None: which ends are held (First hangs from the object) | |
stiffness | number | 0 to 1 | 1.0 | How stiff it is along its length |
damping | number | 0 to 1 | 0.6 | The share of its speed it keeps each second |
wind | list of number | [0.0, 0.0, 0.0] | Wind velocity in metres per second | |
collide | boolean | true | Bounce off the colliders of the scene | |
color | list of number | [0.55, 0.38, 0.2] | Colour of the rope | |
tearable | boolean | false | The rope snaps when it is pulled too hard | |
tear_stretch | number | 1.1 to 5 | 1.6 | How far it stretches (times its length) before it snaps |
self_collide | boolean | false | The rope is stopped by itself: coils rest on each other (slower) | |
mass | number | 0 to 1000 | 3.0 | Weight in kilograms, shared over its particles: what it weighs on a rigid body it rests on and how hard it knocks one it hits (0 = it pushes nothing) |
SafeZone
A safe zone that closes in, in rounds: the circle holds still for wait seconds, closes over shrink seconds onto a smaller circle inside it, and so on. It starts around this object. Outside it every fighter loses hit points each second. A mesh on the object is stretched to the circle, so a tall see-through cylinder shows where it stands. Read radius, center, next_radius, round, closing and time_left for a HUD
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
start_radius | number | 10 to 10000 | 1100.0 | Radius of the first circle, in metres |
end_radius | number | 1 to 10000 | 25.0 | Radius of the last circle, in metres |
rounds | integer | 1 to 32 | 6 | How many times it closes in |
wait | number | 0 to 3600 | 60.0 | Seconds it holds still before each closing |
shrink | number | 0.1 to 3600 | 45.0 | Seconds each closing takes |
damage | number | 0 to 1000 | 2.0 | Hit points a second it takes from those outside, in the first round |
damage_growth | number | 0 to 1000 | 2.0 | How many more each round after that |
seed | integer | 1 | Which circles it picks: the same seed closes the same way | |
enabled | boolean | true | Switched on | |
center | list of number | [0.0, 0.0] | Middle of the circle now, x and z (set by the game) | |
radius | number | 0.0 | Radius of the circle now (set by the game) | |
next_center | list of number | [0.0, 0.0] | Middle of the circle it will close to (set by the game) | |
next_radius | number | 0.0 | Radius of the circle it will close to (set by the game) | |
round | integer | 0 | The round it is on, from 1 (set by the game) | |
closing | boolean | false | Closing now, not holding still (set by the game) | |
time_left | number | 0.0 | Seconds until this wait or closing ends (set by the game) | |
warn_sound | string | "" | Sound file everyone hears when the circle starts to close |
SceneLook
This scene's own sky, light and finish, over the project's: the patch of project settings as JSON (lighting, post)
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
patch | string | "" | Changes to the scene's sky, fog and light that the game applies. |
Shooter
Fires projectiles when the input action is pressed (held, with hold): little balls that fly straight, hurt the first Damageable they meet (not the shooter), and vanish on a wall, on the ground or after lifetime. aim Facing shoots the way the object faces; Mouse shoots towards the pointer on the ground (and turns the object to face it): the top-down shooter; Camera shoots at what the middle of the screen shows: a third-person shooter; Point shoots at aim_at. magazine above 0 makes it a gun that runs out: ammo rounds now, reserve carried, reloaded by the reload_action or when it runs dry. With use_input off nothing but trigger fires it: a bot or a script. No script needed
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
action | string | "Fire" | The input action that fires (Fire = left mouse button, Enter or the gamepad's West button) | |
aim | string | "Facing" | Facing | Mouse | Camera | Point: the way it shoots | |
damage | number | 0 to 10000 | 15.0 | Hit points taken off what a projectile hits |
speed | number | 1 to 2000 | 28.0 | Projectile speed in metres per second |
cooldown | number | 0.02 to 30 | 0.18 | Seconds between shots |
lifetime | number | 0.1 to 60 | 2.0 | Seconds a projectile flies before it vanishes |
radius | number | 0.02 to 3 | 0.14 | Size of a projectile (radius, metres) |
offset | list of number | [0.0, 1.0, -0.7] | Where projectiles start, in metres from the object's origin (x right, y up, z forward is -z) | |
material | string | "" | A material for the projectile ("" = plain) | |
hold | boolean | true | Keep firing while the action is held | |
magazine | integer | 0 to 1000 | 0 | Rounds a full magazine holds (0 = it never runs out) |
ammo | integer | 0 to 1000 | 0 | Rounds in the magazine now |
reserve | integer | 0 to 100000 | 0 | Rounds carried, to reload from |
reload_seconds | number | 0 to 30 | 2.0 | Seconds a reload takes |
reload_action | string | "Reload" | The input action that reloads (Reload = R or the gamepad's North button) | |
reloading | number | 0.0 | Seconds of a reload still to go (set by the game) | |
spread | number | 0 to 45 | 0.0 | How far a shot may stray from the aim, in degrees |
use_input | boolean | true | The input action fires it (off: only trigger does: a bot or a script) | |
trigger | boolean | false | Held by a bot or a script to fire, with use_input off | |
aim_at | list of number | [0.0, 0.0, 0.0] | The world point it shoots at when aim is Point | |
recoil | number | 0 to 20 | 0.0 | How far each shot kicks a player's view up, in degrees |
sound | string | "" | Sound file of a shot, heard from where it is fired | |
reload_sound | string | "" | Sound file of a reload | |
hit_sound | string | "" | Sound file only the one firing hears when a shot hits someone | |
model | string | "" | The model of the gun in hand (set by the game) | |
short | boolean | false | The gun in hand is a short one (set by the game) | |
grip | list of number | [0.0, 0.0, 0.0] | Where the right wrist goes on the gun in hand (set by the game) | |
fore | list of number | [0.0, 0.0, 0.0] | Where the left wrist goes on it (set by the game) | |
butt | list of number | [0.0, 0.0, 0.0] | The point of it that sits in the shoulder (set by the game) | |
muzzle | list of number | [0.0, 0.0, 0.0] | The end of its barrel (set by the game) | |
rail | list of number | [0.0, 0.0, 0.0] | Where a scope sits on it (set by the game) | |
held_size | number | 0.0 | How big it is drawn in the hands (set by the game) | |
aim_pitch | number | 0.0 | Degrees above level the gun points (set by the game) | |
drop | number | 0 to 100 | 0.0 | How fast its shots fall, in metres per second each second: 9.8 is gravity |
zoom | number | 1.0 | How much a scope on it brings things closer while aiming (set by the game) | |
quiet | boolean | false | A silencer is on it: no flash, no streak, and it is heard from close by only (set by the game) | |
hands_off | number | 0.0 | Seconds the hands are busy with something else, with the gun out of them (set by the game) | |
crouched | boolean | false | Whoever has it is crouching (set by the game) | |
lying | boolean | false | Whoever has it is lying on their front (set by the game) | |
switching | number | 0.0 | Seconds of putting this gun away for another still to go: it cannot fire meanwhile (set by the game) |
SmokeSim
Smoke or fire that rises from the object (it sits at the bottom middle of the box), swirls, is carried by wind and goes round solid objects while the scene plays
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
size | list of number | [2.0, 4.0, 2.0] | Size of the box the air is simulated in (the smoke thins out and leaves through its sides and top) | |
resolution | integer | 8 to 48 | 24 | Cells along the longest side of the box: more is finer and slower |
mode | string | "Smoke" | Smoke | Fire: grey smoke, or flames (hot cells glow white-yellow to red, what cools becomes smoke) | |
strength | number | 0 to 10 | 1.0 | How much smoke is made |
source_radius | number | 0.05 to 3 | 0.25 | Radius of the source in metres |
buoyancy | number | 0 to 40 | 16.0 | How strongly heat lifts the air |
turbulence | number | 0 to 3 | 0.8 | Swirl: 0 = smooth, higher = turbulent curls |
dissipation | number | 0 to 2 | 0.2 | How fast the smoke thins out, per second |
wind | list of number | [0.0, 0.0, 0.0] | Wind velocity in metres per second | |
color | list of number | [0.35, 0.35, 0.37] | Colour of the smoke | |
opacity | number | 0.05 to 1 | 0.7 | How thick the smoke looks |
collide | boolean | true | Flow round the box, sphere and capsule colliders of the scene |
SoftBodySim
Makes the object's mesh a soft jelly that wobbles, squashes and springs back while the scene plays
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
stiffness | number | 0.02 to 1 | 0.25 | How hard it pulls back to its shape (low = wobbly, 1 = rigid) |
damping | number | 0 to 1 | 0.6 | The share of its speed it keeps each second |
resolution | integer | 3 to 9 | 5 | Points along each side of the lattice that holds the shape: more is smoother and slower |
collide | boolean | true | Bounce off the colliders of the scene | |
mass | number | 0 to 1000 | 5.0 | Weight in kilograms, shared over its particles: what it weighs on a rigid body it rests on and how hard it knocks one it hits (0 = it pushes nothing) |
Spawner
Spawns copies of a template object while the game plays: waves of enemies, falling blocks, pickups. The template (any object, with its components and children, e.g. an enemy with EnemyAI and Damageable) is switched off at the start and copied; each copy appears around this object (in a ring of radius, or anywhere inside it) at interval seconds. With waves on, a wave is wave_size copies (wave_growth more each wave); the next wave starts wave_pause seconds after every copy of the last one is dead; wave, alive and total can be read from a script for a HUD. Copies that died are removed
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
template | string | "" | The name of the object to copy | |
interval | number | 0.05 to 600 | 1.5 | Seconds between one copy and the next |
waves | boolean | true | Spawn in waves (off: a steady stream) | |
wave_size | number | 1 to 500 | 3.0 | Waves: copies in the first wave |
wave_growth | number | 0 to 100 | 2.0 | Waves: how many more copies each wave has than the one before |
wave_pause | number | 0 to 120 | 3.0 | Waves: seconds of calm after a wave is cleared before the next starts |
max_waves | number | 0 to 1000 | 0.0 | Waves: stop after this many waves (0 = never) |
max_alive | number | 1 to 500 | 40.0 | Stream: the most copies alive at once |
radius | number | 0 to 500 | 12.0 | How far from this object copies appear, in metres |
ring | boolean | true | Copies appear on the ring of radius (off: anywhere inside it) | |
first_delay | number | 0 to 120 | 2.0 | Seconds before the first copy |
enabled | boolean | true | Switched on | |
wave | number | 0.0 | The wave it is on (set by the game) | |
alive | number | 0.0 | Copies alive now (set by the game) | |
total | number | 0.0 | Copies made so far (set by the game) |
SprayCan
A can of spray paint, no script needed: while the input action is held it paints on the wall, the ground or whatever the middle of the screen shows (a third-person or first-person camera) within reach, as marks that stay (the oldest of 800 go first). The colour action changes the colour, a round of eight. Put it on the player
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
action | string | "Fire" | The input action that sprays (Fire = left mouse button, Enter) | |
colour_action | string | "Reload" | The input action that changes the colour (Reload = R) | |
size | number | 0.1 to 5 | 0.5 | How wide one spray is, in metres |
reach | number | 0.5 to 100 | 14.0 | How far from the can it reaches, in metres |
interval | number | 0.01 to 1 | 0.03 | Seconds between one mark and the next while it is held |
swatch | integer | 0 | Which of the eight colours it has now (set by the game) |
ThirdPersonCamera
Third-person camera: put it on the Camera object. It follows a target from behind and lets the player orbit it (hold the right mouse button and drag, or the right stick, or Q and E to turn, R and F to look up and down, the mouse wheel to zoom), and it comes closer when a wall is in the way so the view is never blocked. Do not combine with CameraFollow on the same camera
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
target | string | "" | The name of the object to follow (the player; if it is only a holder, the child that walks) | |
height | number | 0 to 10 | 1.6 | How far above the target's origin the camera looks and circles (about head height; characters you add stand with their origin at their feet) |
distance | number | 0.5 to 60 | 5.0 | How far behind the target it is, in metres (the wheel changes it between min_distance and max_distance) |
min_distance | number | 0.3 to 30 | 1.5 | Closest it can zoom |
max_distance | number | 1 to 100 | 12.0 | Farthest it can zoom |
shoulder | number | -3 to 3 | 0.0 | Sideways offset in metres: positive looks over the right shoulder |
yaw | number | -360 to 360 | 0.0 | Turn round the target in degrees: 0 is behind a target that faces -Z, 90 from its right |
pitch | number | -89 to 89 | 15.0 | How far it looks down on the target, in degrees |
min_pitch | number | -89 to 89 | -20.0 | Lowest it can go (negative looks up from below) |
max_pitch | number | -89 to 89 | 70.0 | Highest it can go |
sensitivity | number | 0.01 to 2 | 0.25 | Degrees turned for each pixel the mouse moves |
smoothing | number | 0 to 60 | 10.0 | How quickly it follows (0 = at once) |
collide | boolean | true | Come closer when a box, sphere or capsule collider is between the camera and the target | |
enabled | boolean | true | Off = the camera is left alone (a cutscene) | |
first_person | boolean | false | First person: the camera is at the target's eye (height), looks where the mouse turns it and has no distance, so what it carries (a hand, a gun, a spray can: children of the camera) is seen in front of it. Give the target no body of its own (or hide it) | |
mouse_look | boolean | false | The mouse turns the camera with no button held, and the pointer is hidden and held in the window while the game plays (Escape gives it back): a shooter | |
aim_action | string | "Aim" | The input action that aims: the view comes in over the shoulder and shots go straighter (Aim = right mouse button or the left trigger) | |
aim_distance | number | 0.3 to 20 | 1.7 | How far back it stands while aiming, in metres |
aim_view | number | 0.1 to 1 | 0.7 | How wide the view is while aiming, as a share of the camera's own |
Vehicle
A car: someone walks up and presses take_action to drive it, and again to get out. It follows the land and stops against what is solid
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
max_speed | number | 1 to 120 | 24.0 | Top speed in metres per second |
reverse_speed | number | 0.5 to 60 | 6.0 | Top speed backwards |
acceleration | number | 0.5 to 60 | 8.0 | How fast it speeds up, in metres per second each second |
brake | number | 0.5 to 100 | 18.0 | How fast the brakes slow it |
drag | number | 0 to 30 | 2.5 | How fast it slows with nothing pressed |
turn_rate | number | 5 to 360 | 75.0 | How fast it can turn at best, in degrees per second |
length | number | 0.5 to 30 | 4.2 | How long it is, in metres |
enter_radius | number | 0.5 to 30 | 3.5 | How close someone has to be to get in |
seat_height | number | -5 to 5 | -0.5 | How far above the car's base the driver's feet are: below it, a standing figure sits inside |
camera_distance | number | 1 to 100 | 8.0 | How far back a third-person camera stands while it is driven |
take_action | string | "Take" | The input action that gets in and out (Take = E or the gamepad's D-pad up) | |
crash_sound | string | "" | Sound file of running into something | |
starts_with | string | "" | The object at the wheel when the game starts: a race has no walk to the car | |
driver | string | "" | Who is driving it (set by the game) | |
speed | number | 0.0 | Metres per second, below 0 going backwards (set by the game) | |
near | boolean | false | Someone could get in from where they stand (set by the game) | |
toughness | number | 0 to 100000 | 400.0 | What it takes before it burns: shots, blasts and hard crashes all count. It smokes when badly hurt, burns, then blows up. 0 = nothing hurts it |
harm | number | 0.0 | The harm it has taken (set by the game) | |
burning | number | 0.0 | Seconds it has been on fire (set by the game) | |
wrecked | boolean | false | It has blown up, and goes no more (set by the game) | |
range | number | 0 to 1e+06 | 0.0 | How far a full tank takes it, in metres: it burns fuel as it goes, rolls to a stop when the tank is empty, and a Jerry Can fills it again. 0 = it never runs out |
fuel | number | 0 to 1 | 1.0 | How full its tank is, 0 to 1 |
grip | number | 0 to 4 | 0.0 | Tyre grip. 0 = the arcade car that always goes where its nose points; above 0 the car has weight: it slides sideways when it turns too hard for its speed, drifts on the handbrake (Jump) and grips less off the road. 1 is a road car, 2 sticks like racing slicks |
drift_grip | number | 0.1 to 4 | 1.4 | Grip left while the handbrake is held or the tyres are sliding: lower drifts more |
gears | integer | 1 to 10 | 6 | Gears: the engine's note climbs through each and drops at the change |
boost_power | number | 0 to 3 | 0.0 | Nitro: extra push while Sprint (Shift) is held and the tank has some; 0 = no nitro. 1 doubles the acceleration |
boost_secs | number | 0.5 to 30 | 3.5 | Seconds a full nitro tank lasts |
slide | number | 0.0 | Sideways speed in metres per second, positive to the right (set by the game) | |
gear | integer | 1 | The gear now (set by the game) | |
rpm | number | 0.0 | How hard the engine turns, 0 to 1 within the gear (set by the game) | |
boost | number | 0.0 | How much nitro is left, 0 to 1; drifting fills it (set by the game) | |
boosting | boolean | false | Nitro is burning (set by the game) | |
drifting | boolean | false | The tyres are sliding hard enough to smoke (set by the game) | |
steer | number | 0.0 | The wheel: -1 left, 1 right, eased (set by the game) |
Wander
Walks about by itself near where it stands, and stops a while now and then
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
radius | number | 0.5 to 500 | 12.0 | How far from where it started it goes, in metres |
speed | number | 0.1 to 20 | 1.2 | Metres per second |
pause | number | 0 to 60 | 4.0 | Seconds it stands still between walks, at most |
Wheel
A wheel of the car named car: it sits at offset (right, up, forward in the car's own frame), rolls as the car goes (radius metres) and turns up to steer degrees with the steering. Put the wheel's mesh on this object with its middle at the hub
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
car | string | "" | The name of the object with the Vehicle | |
offset | list of number | [0.9, 0.35, -1.4] | Where the hub is, in the car's own frame: right, up, forward | |
radius | number | 0.05 to 3 | 0.35 | Radius of the tyre in metres: it sets how fast it turns |
steer | number | 0 to 60 | 0.0 | How far it turns with the steering, in degrees: the front wheels, 0 for the back |
left | boolean | false | A wheel on the left: its mesh is turned half way round so its outside faces out | |
spin | number | 0.0 | How far round it has rolled, in degrees (set by the game) |
Wind
Bends the scene's Grass and each MeshRenderer with a sway
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
toward | number | 0 to 360 | 60.0 | Compass bearing it blows towards: 0 north (-z), 90 east (+x) |
strength | number | 0 to 2 | 0.5 | 0 still air, 0.5 a breeze, 1 strong, 2 a storm |
enabled | boolean | true | Let wind move the grass and trees. |
Other
Character CharacterState MoveIntent Name Projectile RigidbodyOptions ScriptParams Terrain Transform WorldText
Character
Kinematic character controller parameters
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
speed | number | | How fast the character walks. | |
jump_speed | number | | How fast the character leaves the ground in a jump. | |
skin | number | 0 to 1.79769e+308 | | Collision skin in world units; keep small |
use_input | boolean | | Walk and jump with the Horizontal / Jump input actions |
CharacterState
Character controller runtime state (velocity, grounding)
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
velocity | list of number | | How fast the character moves now. | |
grounded | boolean | | Whether the character stands on something. |
MoveIntent
Per-tick movement intent for a character (-1..1 x, jump)
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
x | number | -1 to 1 | | Which way the character is asked to go, left to right. |
jump | boolean | | Whether the character is asked to jump. |
Name
Display name shown in the hierarchy
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
name | string | | The object's name. |
Projectile
A projectile in flight (made by a Shooter, or put in a scene yourself): it flies with its velocity, hurts the first Damageable it meets that is not its owner and vanishes there, on a wall, or when its life runs out
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
velocity | list of number | [0.0, 0.0, -20.0] | Velocity in metres per second | |
damage | number | 0 to 10000 | 15.0 | Hit points taken off what it hits |
life | number | 0.05 to 120 | 2.0 | Seconds left to fly |
radius | number | 0.02 to 3 | 0.14 | How close to something it has to be to hit it (metres) |
owner | string | "" | The name of what fired it (it cannot hurt that) | |
drop | number | 0 to 100 | 0.0 | How fast it falls, in metres per second each second |
RigidbodyOptions
Rigidbody options: drag, gravity, freeze axes, continuous collision detection, sleeping, initial velocity
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
drag | number | 0 to 100 | 0.0 | Linear drag: slows movement down (0 = none) |
angular_drag | number | 0 to 100 | 0.05 | Angular drag: slows spinning down |
use_gravity | boolean | true | Gravity pulls on this body | |
freeze_pos_x | boolean | false | Freeze movement along X | |
freeze_pos_y | boolean | false | Freeze movement along Y | |
freeze_pos_z | boolean | false | Freeze movement along Z | |
freeze_rot_x | boolean | false | Freeze turning about X | |
freeze_rot_y | boolean | false | Freeze turning about Y | |
freeze_rot_z | boolean | false | Freeze turning about Z | |
continuous | boolean | false | Continuous collision detection: fast bodies cannot tunnel through thin colliders | |
can_sleep | boolean | true | The body may fall asleep when it comes to rest | |
initial_velocity | list of number | [0.0, 0.0, 0.0] | Velocity the body starts Play with (units per second) |
ScriptParams
Values of the attached script's exposed parameters, as a JSON object string
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
values | string | | The values set on the script's fields. |
Terrain
Side size, vertices per side, packed heights (empty = flat) and a material path
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
size | number | | How wide and long the ground is, in metres. | |
resolution | integer | | How many points the ground has across; more is finer. | |
heights | string | | The height of the ground at each point (edited with the sculpt tools). | |
material | string | | The material the ground is painted with. | |
layer1 | string | | The first paint layer's picture. | |
layer2 | string | | The second paint layer's picture. | |
layer3 | string | | The third paint layer's picture. | |
splat | string | | How much of each paint layer is at each point (edited with the paint tools). |
Transform
2D world transform: position in world units, rotation in radians
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
position | list of number | [0.0, 0.0] | Where it is, across and up. | |
rotation | number | 0.0 | How far it is turned, in radians. |
WorldText
World text: letters at this object's position, facing the camera, smaller with distance like the objects around them (a name tag, a damage number). Hidden behind solid objects unless occlude is off. Scripts: obj.Set("WorldText", "text", "...")
| Field | Type | Range | Default | What it does |
|---|---|---|---|---|
text | string | | The words drawn in the scene. | |
size | number | 0.01 to 1.79769e+308 | | Height of the text in world units (the em height; capital letters are about 0.7 of it) |
color | list of number | | Text colour (r, g, b, a) | |
max_distance | number | 0 to 1.79769e+308 | | Hidden when the camera is further away than this (0 = always shown) |
outline | boolean | | A dark edge behind the letters so they read on any background | |
font | string | | A project font (.ttf / .otf); empty = the game's default | |
occlude | boolean | | Hidden while a solid object is between the camera and the text (not hidden by the object it belongs to) |