Light Component

From Pummel Party Mod Documentation
Revision as of 19:22, 24 October 2022 by RBAdmin (talk | contribs) (Created page with "The Light component as the name implies allows you to add light sources which will be used to effect the shading of Props in your scene. == Light Settings == {| class="wikitable" |- ! scope="col"| Property ! scope="col"| Description |- ! scope="row"| Type | A light can have one of three shapes Point, Spot or Directional (directional lights are like the Sun, Point lights are like a light bulb). |- ! scope="row"| Color | The color of the shading applied by the li...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The Light component as the name implies allows you to add light sources which will be used to effect the shading of Props in your scene.

Light Settings

Property Description
Type A light can have one of three shapes Point, Spot or Directional (directional lights are like the Sun, Point lights are like a light bulb).
Color The color of the shading applied by the light source.
Range The distance the light source will effect objects (for directional lights this has no effect).
Intensity The brightness of a light source.
Shadows Determines if this light source will cast shadows and whether they will have a soft or hard edge).

Example

Let's say for example we have the following scene containing a prop of a camp fire. In order to show the camp fire is lit we might add a light source.

Light ex 01.jpg

Adding a light source to our scene

  1. Right click on the camp fire in the hierarchy window on the left side of the mod editor screen.
  2. In the context menu that opens move your mouse to 'Light'.
  3. Click on 'Point Light' from the options of lights.
  4. You should now have a light source under your camp fire, click on the lights gizmo icon and move the light slightly up.
  5. While selecting the light game object, look in the inspector window on the right side of the mod editor.
  6. Find the 'Color' option and change it to orange.

We now have a light source under our campfire that makes it appear lit.

Light ex 02.jpg