Creating Custom [Required] Attribute || Unity, C#

Поділитися
Вставка
  • Опубліковано 6 січ 2025

КОМЕНТАРІ • 7

  • @bakasan9424
    @bakasan9424 29 днів тому

    thank you I juste need that you are amazing

  • @jamestanubrata6782
    @jamestanubrata6782 Місяць тому

    That's so awesome do you know how to make a label attributes which allows to label a list or an array title variable name

    • @freedomcoding
      @freedomcoding  Місяць тому

      Hi, you mean to add a name for each element from a list? For that you could create a class or a dictionary.

    • @jamestanubrata6782
      @jamestanubrata6782 Місяць тому

      @freedomcoding no I mean the list title itself not the element

    • @freedomcoding
      @freedomcoding  Місяць тому

      @@jamestanubrata6782 You can use the [Header] attribute that already comes with Unity. There are several others like Tooltip etc. There is a list of some of the attributes - tutorials.eu/unity-attributes-15-tipps-for-the-perfect-inspector-experience/