Skip to main content

Shapes & materials

Anything you can see has a Shape & look component. Add a shape from Objects → + Add → Shapes, or add the component to any object.

FieldWhat it does
ShapeCube, Sphere, Plane, Capsule, Cylinder, Cone, Torus (ring), Circle (a flat disc, like a Plane but round), 3D model (file), 3D text, or Along curve (on an object with a Curve: draws the curve as a tube, road or beam), or Editable mesh (the shape turned into faces you edit in the 3D view: see Editable mesh).
ColorThe base color. With a texture, the color tints it (white = the texture as it is).
TextureAn image wrapped on the shape: one of yours, a new import, or one of the Free textures (ground, stone, wood, tiles).
Normal map, AO map, …More pictures for bumps, creases, glow and baked light. See Texture maps.
Tiling(with a texture or map) How many times it repeats, U × V. Use it for floors: a 10×10 plane with tiling 10, 10.
Offset(with a texture or map) Slides the picture along U and V; 0.5 moves it half way.
StyleHow light falls on it (see below).
Glow colorEmissive color: the surface shines with it even in the dark. Black = no glow.
Glow intensityHow strong the glow is (Unity's HDR emission intensity). Above 1 is brighter than white: with Bloom it shines, and in baked lighting it lights more.
Global IlluminationBaked: on a Contribute GI object, the glow lights the surfaces and probes around it when you press Generate Lighting. None: it only glows itself.
Opacity1 = solid, 0 = invisible.
Flat shadingFaceted, low-poly look.
Casts / Receives shadowWhether it throws shadows and shows shadows on itself.
card mesh

Shape settings​

Under Shape, the Shape settings group changes how a shape is made. Sizes here are the shape's own, and the object's Scale still multiplies them. Nothing is set by default: a shape keeps its usual size and detail until you change a value, and a value you set back to the usual one is simply forgotten.

ShapeSettings
CubeWidth / Height / Depth segments: cuts across each side. Useful for bending or waving a cube with a shader.
SphereRadius, Width / Height segments (fewer = a low-poly ball), Arc (how much of the way around), Height arc (90° = a half sphere). Turn on Icosphere for even triangles instead of rings; Detail says how many times they are split (0 = 20 triangles).
PlaneWidth / Depth segments.
CircleRadius, Segments, Arc (a pie slice).
CapsuleRadius, Length (the straight part between the caps), Radial / Cap segments.
CylinderTop radius and Bottom radius (make them different for a tapered pipe), Radial / Height segments, Arc, Open ended (no lids).
ConeRadius, Top radius (above 0 makes a flat-topped cone), the same segments, Arc and Open ended.
TorusRadius (of the ring), Tube radius (how thick), Ring / Tube segments, Arc (less than 360° is a bent pipe).
  • Objects with the same settings share one shape, so many of them are still drawn together quickly. More segments cost more on a phone: keep them as low as the look allows.
  • An automatic collider follows the settings (a sphere's radius, a cylinder's two radii, a capsule's length). Shapes with a hole or a hollow side (a torus, an open-ended cylinder or cone, a sphere or cylinder with an arc) keep it open: an object that never moves gets a collider that follows the real surface, so a ball goes through the ring and a car through the pipe. An object that moves (or a trigger) gets a ring of small pieces around the Y axis instead; a moving bowl is the one case it still fills in. Choose Convex on the collider when you do want the whole shape solid.
  • The settings can change while the game runs: in a script, entity.component('mesh').radius = 2 (or tube, segW, segH, arc, ico, detail…) rebuilds the object (its collider too) at the end of the frame. Set them once when something happens, not every frame.

Material styles​

StyleLookSpeed
Matte (fast)Soft, no shine. The default — looks good and is fastest on phones.⚡⚡⚡
RealisticPhysically based: adds Roughness and Metalness sliders; reflects the sky when Light with sky is on; with no sky it reflects a soft default sky (blue top, pale horizon, grey ground), so a metal is never black. To reflect the objects around it, add a Reflection probe.⚡
CartoonToon shading in bands.⚡⚡
Unlit (flat color)Ignores lights completely — always the exact color. Good for skies, UI-like objects, glowing things.⚡⚡⚡
Reflector (Mirror)A mirror: shows the scene reflected in it (see Mirror).⚡ per mirror in view
Realistic: roughness and metalness
Realistic: roughness and metalness
3D model: pick a model file
3D model: pick a model file

Glass and coatings (Realistic)​

On a Realistic material these sliders turn on the extra looks of a physically based material. All are 0 (off) until you move them.

SettingWhat it does
TransmissionGlass: 0 is solid, 1 is clear. What is behind shows through, bent and blurred by the roughness.
ThicknessWith glass: how thick it is, in meters. A thick glass ball bends and tints more.
IORWith glass: how much it bends light. 1.5 is glass, 1.33 water, 2.4 diamond.
Clear coatA glossy clear layer on top, like car paint or a lacquered table.
SheenA soft glow at the edges, like velvet or cloth.
IridescenceRainbow colors that shift with the angle, like a soap bubble or oil on water.

Transmission is the costly one. The game draws the scene a second time to see through the glass, so use it on a few objects (a window, a bottle), not many. For cheap see-through, use Opacity.

Texture maps​

Besides the Texture (Unity's Albedo), a material takes the other maps of Unity's Standard material. They are images too: you get them with downloaded PBR textures (a stone wall usually comes as albedo, normal, roughness, AO, height). Each one only shows on the styles that use it.

MapWhat it doesStyles
Normal mapBumps and dents without extra shape detail: bricks, scratches, stitching. Normal scale makes them deeper (0–3). Use OpenGL-style normal maps (green up); a DirectX one (green down) looks lit from the wrong side, so flip its green channel in a paint program first.Realistic, Matte, Cartoon, Mirror
Roughness mapWhich parts are shiny (dark) and which are dull (light). Multiplied by Roughness, so set Roughness to 1 to see the map as it is. Read from the green channel.Realistic
Metalness mapWhich parts are metal (white). Multiplied by Metalness: set it to 1. Read from the blue channel.Realistic
AO mapAmbient occlusion: darkens creases and corners. AO intensity sets how much (0–1). Read from the red channel.all except Custom shader
Emissive mapWhich parts glow, and in which colors: screens, windows at night, lava cracks. It is multiplied by Glow color, which turns white when you pick the map.Realistic, Matte, Cartoon, Mirror
Displacement mapA height map that really moves the surface (white up, black down) by Displacement scale. The shape needs enough cuts to bend: raise its cuts in Shape settings (a Plane with 100 × 100 for ground).Realistic, Matte, Cartoon, Mirror
Light mapBaked light (Unity's lightmap): light and shadow painted into a picture by a baking tool such as Blender, added to the light of the scene. Light map intensity makes it brighter (0–4). It is read through a model's second UV set (its lightmap UVs), or the first when it has none.all except Custom shader
  • All the maps share the Tiling and Offset of the material, except the light map, which always covers the shape once.
  • A light map adds to the scene's lights. For a scene lit only by its bake, turn the realtime lights down (or remove them), as baked lights in Unity no longer light the scene themselves; keep the Sun only where you want moving shadows.
  • A glTF model's packed ORM texture (occlusion, roughness, metalness in red, green and blue) works as it is: pick the same image for the AO, Roughness and Metalness maps.
  • Imported 3D models already bring their own maps; these slots are for shapes and for shared materials in Files.
  • Each map is one more image for the phone to hold. A normal map is the one worth it most; on low-end phones, prefer the Matte style with a texture and a normal map.

Video​

Pick a Video (an .mp4 or .webm you imported in Files) and it plays on the surface instead of a Texture: a TV screen, a cinema, a billboard, a security monitor. Use a Plane or a Cube and the Unlit style, so the picture is as bright as the video.

  • The video starts when the game starts, is muted and loops. Phones only let a game start video by itself when it is muted, and some wait for the first tap.
  • Play, pause or restart it while playing with the action Video on the object (Play, Pause, Restart), or entity.video.play(), .pause(), .restart() and entity.video.playing in a script. Objects showing the same video share it, so pausing one pauses all.
  • It does not work with Custom shader materials.
  • For sound, play / pause per object, a full-screen video or a render texture, use a Video Player instead.
  • Keep videos short and small (a few seconds at 480 p is plenty): the whole file is loaded into the game, and a game exported as one HTML file carries it inside.
  • The editor view only redraws when something changes, so the video moves for sure when you press Play.

Mirror​

Set a Plane shape to the Reflector (Mirror) style and it reflects the scene: a bathroom mirror, a shiny floor, a pool of still water. The Color tints the reflection (white is a perfect mirror), and Reflection size (128, 256, 512 or 1024) sets how sharp it is. Tilt the plane to make a wall mirror.

  • A mirror draws the scene a second time, but only while it is on screen and facing the camera. Several mirrors in view add up, so keep to one or two, and choose a smaller Reflection size on phones. A low Max pixel ratio makes the picture smaller by itself.
  • A mirror seen inside another mirror shows what it drew last, not an endless tunnel.
  • In the editor view a mirror is shown as polished metal; you see the real reflection when you play.
  • On a shape that is not a Plane, the Mirror style is polished metal (it reflects the sky when Light with sky is on), not a true reflection.

Extras on a material​

SettingWhat it does
StepsWith Cartoon: how many bands of light (2–8). 2 is a flat comic look.
Double sidedDraw both faces. Use it for flat text, planes and leaves you see from behind.
OutlineA colored line around the object (0 = off). It works on shapes, 3D text and imported models, including animated characters. Outline color picks the color.
Outline fixed on screenOn: the line is the same thickness on screen at any distance. Off: it is part of the object and shrinks when it is far away.

The outline is a second copy of the object drawn slightly bigger behind it, so it costs about one extra object. That is cheap for a few characters; don't put it on hundreds of things.

3D text​

Objects → + Add → Text (3D) puts words in the world as real letters. Select it and use the Mesh card (Shape: Text (3D)):

SettingWhat it does
TextThe words. New lines are allowed; each line is centered.
FontOne of your fonts, or the built-in one.
DepthHow thick the letters are. 0 makes them flat: just the shape of the letters, shown from both sides.
BevelRounded edges on thick letters.
StyleFilled, Lines only (just the outline of each letter) or Filled + lines.
Line colorThe color of those lines (the material's color if you don't pick one).
Line widthHow thick the lines are, in pixels (default 2).

For a see-through blueprint look, make the text flat, set Style to Filled + lines, and lower the material's Opacity to about 0.4. The size of the object (its Scale) is the height of the letters in meters. Change the words while playing with Set text (or entity.setText()).

Sizes​

Shapes are 1 m across at scale 1 (the plane is 1×1 m; a new Plane is scaled 10×10). Change the size with Scale in the Transform card, or the Scale gizmo.

Changing looks while playing​

Actions: Set color, Set opacity, Set visible, Tween (smoothly animate opacity, size, position…). Scripts: entity.setColor('#ff0'), entity.setOpacity(0.5).