Показать сообщение отдельно
Старый 13.01.2015, 06:23   #2005
ANIK123
Знающий
 
Аватар для ANIK123
 
Регистрация: 29.11.2010
Сообщений: 244
Написано 31 полезных сообщений
(для 49 пользователей)
Ответ: Вопросы от новичка

Стесняюсь спросить: у всех исправно работают градиенты?))
Пишем например:
using UnityEngine;
using System.Collections;
public class 
GradientTestMonoBehaviour {
    public 
Gradient grad; public Color color;
    [
Range(01f)]
    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
(Offline)
 
Ответить с цитированием