Tetra Attributes View on Asset Store (opens in new tab)

Package details

Latest version
1.0.7
Last updated
First released
Unity version
2021.3.45 or later
Package size
838 KB
Files
38
Favorites
35
Views in the past week
14

Price tracking

Last checked
Tracked since
Lowest recorded
Free on

Keywords

Tetra Attributes

by Tetra Creations (opens in new tab)

5.0 / 5 · 3 ratings

Ratings by stars
Number of ratings for each star rating
5 stars 3
4 stars 0
3 stars 0
2 stars 0
1 star 0

Keep your inspector and editor window organised and clear with this small collection of attributes.

Price Free

Get it free on Asset Store (opens in new tab)

Affiliate link · Purchases support this site

Price history

Last 6 months

USD
Price history for Tetra Attributes, 6 months Current Free; lowest Free; highest Free in this period. $0 Jun Jul Aug Sep Oct Nov

Asset preview

1 / 3

Tetra Attributes screenshot 1

Tetra Attributes screenshot 1

About this asset

This is a collection of C# attributes for the Unity editor that I use in most of my projects. Some are essential, like ReadOnly, which I've been using for several years. While others like Title are more for keeping the inspector window organised and clear.

Once imported simply add this line to your file header to use any attributes :

using TetraCreations.Attributes;

Attributes 📌

  • [Tile] : Alternative to Header attribute but with a line to separate the title from other fields.
  • [ReadOnly] : Used to disable modifications to a serialized field.
  • [DrawIf] : Draw a property field if the condition is true. (Only for Boolean and Enum)
  • [HelpBox] : Display an help box in the inspector with a message and a type (None, Info, Warning, Error)
  • [MinMaxSlider] : Show a slider with minimum and maximum values for a Vector2.
  • [SnappedSlider] : Draw a slider to increase an integer or a float value by a certain amount (step) and clamped by a minimum and a maximum value. (Only for Integer and Float)
  • [Required] : Draw an Help Box (Error Type) if a field value is empty or null.
  • [PathReference] : Store a reference to an asset folder in the editor.
  • [Button] : Draw button in the inspector, it needs to be used with a method and not a field.
  • [SpritePreview] : Draw the texture below a sprite field.
  • [Tags] : Display a dropdown with all available tags.

Documentation 📝

  • A demo scene with a single script using every attributes.
  • Offline documentation included in PDF and Markdown with some code examples and screenshots of the inpector window.
  • Also available online here : Documentation

From the publisher's Asset Store listing.

Technical details

Compatibility ✅

  • Tested and verified on Unity 2019.4 and Unity 2021.3.
  • Build made using Unity 2021.3 without any errors.
  • Since attributes are only meant to be used inside the Editor, they are not included in your build.

Compatibility

Render pipelines supported in each Unity version
Unity version Built-in URP HDRP
2021.3.45f2 Compatible Compatible Compatible

As listed on the Asset Store.