Light.areaSize Manual     Reference     Scripting  
Scripting > Runtime Classes > Light
Light.areaSize

var areaSize : Vector2

Description

The size of the area light. Editor only.

See Also: Light component

JavaScript
light.areaSize = Vector2(5, 2);

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Example() {
light.areaSize = new Vector2(5, 2);
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Example():
light.areaSize = Vector2(5, 2)