Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть Setting the value of Property in Unity Editor Inspector|Public Variables C# Serialize Field|

  • TechWorld Plaza
  • 2023-01-03
  • 173
Setting the value of Property in Unity Editor Inspector|Public Variables C# Serialize Field|
  • ok logo

Скачать Setting the value of Property in Unity Editor Inspector|Public Variables C# Serialize Field| бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно Setting the value of Property in Unity Editor Inspector|Public Variables C# Serialize Field| или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку Setting the value of Property in Unity Editor Inspector|Public Variables C# Serialize Field| бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео Setting the value of Property in Unity Editor Inspector|Public Variables C# Serialize Field|

In this short Unity Game Engine tutorial we will learn how to expose a property to the Inspector in the same way as a field.
A public variable is available in the Unity editor for read and write. This is not a good practise as Public member variables give up control of who can change the state of the object and that introduces an opportunity for bugs.
The Inspector can only display values that are serialized by Unity and Unity doesn't auto-detect properties like it does public member variables. This means we have to tell it which properties to serialize so they will be displayed in the Inspector. We accomplish this by annotating variable with the SerializeField attribute, and add the field prefix to the annotation like this

[field: SerializeField]
public float Speed { get; set; }

We can now see the variable Speed in the Inspector and edit the value there.

I hope this helped. Please Subscribe, Like,Comment and Share my channel for more fun videos and stay tuned for more. Thanks for watching.

Subscribe to TechWorld Plaza on YouTube:
   / @techworldplaza  

Unity 3d:
https://unity3d.com/get-unity/download

#unitytutorial #unity3d #unity2d

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]