Unity Area Light

Unity3D Area Light

Our Area Light can be used at runtime as well as in editor.

There are two ways you can create Area Light.

  1. Manually adding in editor

  • Create an empty Game Object

Empty game object
  • Add new component "Real Light"

  • That's it. Now you can perform transform operations such as "Position, Rotation, Scale" and area light operations such as intensity, color etc.

Real Light
  1. By using C#

private void AddAreaLight()
{
    const float width = 1f;
    const float height = 2f;
    const float intensity = 20f;
    var color = Color.yellow;
    
    var areaLight = RealMesh.AreaLight(width, height, intensity, color);

    areaLight.transform.position = new Vector3(1, 2, 1);
}
Simple example of creating area light
Real API area light

Last updated