기술 자료

Unity Engine

Unity Engine

intensity

The Intensity of a light is multiplied with the Light color.
읽는 시간 1분최근 업데이트: 한 달 전

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); }}