Question by
gablor · Dec 02, 2016 at 03:48 PM ·
scripting problemlights
Problem with Area and Spot Lights unity pro 5.4
Hello, i have a problem with a Area Light and a Spot light in one scene. I control these two light with a simple script:
using UnityEngine; using System.Collections;
public class aumentaluci : MonoBehaviour {
public float massimo;
public Light luce;
// Use this for initialization
void Start () {
luce.intensity = 0;
}
// Update is called once per frame
void Update () {
if (luce.intensity < massimo)
{
luce.intensity = luce.intensity + 0.02f;
}
}
}
With these PC configuration : PROCESSOR: Intel Core i7 4790 3,60 Ghz RAM 16 Gb Nvidia GTX 950 O.S. Windows 8.1 64 bit
When the script run the scene completly stop working. I tried the application in other PC with different configuration, and changing the grafic card with a Nvidia Quadro 600 and work fine. Somene can help me understand why with the GTX 950 doesn't work?
Comment