Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


intensity

The Intensity of a light is multiplied with the Light color.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public float intensity { get; set; }

Remarks

The value can be between 0 and 8. This allows you to create over bright lights.

Examples

using UnityEngine;public class example : MonoBehaviour{ Light myLight; void Start() { myLight = GetComponent<Light>(); } void Update() { myLight.intensity = Mathf.PingPong(Time.time, 8); }}