Ответ: Вопросы от новичка
Стесняюсь спросить: у всех исправно работают градиенты?))
Пишем например:
using UnityEngine;
using System.Collections;
public class GradientTest: MonoBehaviour {
public Gradient grad; public Color color;
[Range(0, 1f)]
public float timepos;
void Update(){
color = grad.Evaluate(timepos);
}
}
А в ответ получаю:
error CS1061: Type `Gradient' does not contain a definition for `Evaluate' and no extension method `Evaluate' of type `Gradient' could be found (are you missing a using directive or an assembly reference?)
Версия юнити 4.6.1f1
__________________
Intel Core i3-4005U (1.7 ГГц), 4 ГБ ОЗУ, nVidia GeForce 940M 4 ГБ, Win8.1
|