Помогите понять в чем проблема?

Общие вопросы о Unity3D

Помогите понять в чем проблема?

Сообщение Di0gen 22 июн 2023, 15:42

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MyFirstScript : MonoBehaviour
{
private void update ()
{

transform.position = new Vector3(10f, 10f, 10f);
transform.eulerAngles = new Vector3(30F, 30F, 30F);
transform.LocalScale = new Vecror3(2f, 2f, 2f);

}
}
на такой код юнити выдает 2 ошибки
Assets\MyFirstScript.cs(12,19): error CS1061: 'Transform' does not contain a definition for 'LocalScale' and no accessible extension method 'LocalScale' accepting a first argument of type 'Transform' could be found (are you missing a using directive or an assembly reference?)
и
Assets\MyFirstScript.cs(12,36): error CS0246: The type or namespace name 'Vecror3' could not be found (are you missing a using directive or an assembly reference?)

подскажите в чем проблема или хотя бы что изучить чтобы понеять в чем дело?
Di0gen
UNец
 
Сообщения: 4
Зарегистрирован: 22 июн 2023, 15:39

Re: Помогите понять в чем проблема?

Сообщение waruiyume 22 июн 2023, 16:01

В первой букве слова "locale". Вы в блокноте что-ли пишете?
Аватара пользователя
waruiyume
Адепт
 
Сообщения: 6143
Зарегистрирован: 30 окт 2010, 05:03
Откуда: Ростов на Дону

Re: Помогите понять в чем проблема?

Сообщение Di0gen 22 июн 2023, 16:29

Большое спасибо, была ошибка в слове locale и vector3 , теперь выдвает :Assets\MyFirstScript.cs(12,19): error CS1061: 'Transform' does not contain a definition for 'LocaleScale' and no accessible extension method 'LocaleScale' accepting a first argument of type 'Transform' could be found (are you missing a using directive or an assembly reference?)
Di0gen
UNец
 
Сообщения: 4
Зарегистрирован: 22 июн 2023, 15:39

Re: Помогите понять в чем проблема?

Сообщение Di0gen 22 июн 2023, 16:56

waruiyume писал(а):В первой букве слова "locale". Вы в блокноте что-ли пишете?


Большое спасибо, была ошибка в слове locale и vector3 , теперь выдвает :Assets\MyFirstScript.cs(12,19): error CS1061: 'Transform' does not contain a definition for 'LocaleScale' and no accessible extension method 'LocaleScale' accepting a first argument of type 'Transform' could be found (are you missing a using directive or an assembly reference?)
я просто почему то не могу включить отладку, кнопка прост о сертая.
Di0gen
UNец
 
Сообщения: 4
Зарегистрирован: 22 июн 2023, 15:39


Вернуться в Общие вопросы

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 10