Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
3
Question by scottishrob13 · Mar 27, 2015 at 05:03 PM · c#variablesrangeattributetooltip

Is there a list of variable attributes for C#?

I remember reading somewhere that there were something like 50 variable attributes that we had access to if we were scripting in c#. The attributes I'm talking about look like this

 [Range(float,float)]
 float someFloat;

or

 [Tooltip(string)]
 var anyVariable;

Every one I've stumbled across has been, for the most part, awesometacular. Just wondering if there was a compiled list somewhere, or if Unity had official documentation on them someplace, I've been looking for a couple of weeks and haven't found anything except for a broken link to http://unity3d.com/support/documentation/ScriptReference/20_class_hierarchy.Attributes.html and the stuff straight from Microsoft which usually isn't super helpful for what I want to do https://msdn.microsoft.com/en-us/library/system.attribute.aspx#inheritanceContinued

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image hexagonius · Mar 27, 2015 at 05:10 PM 0
Share

That's in the sidebar of the Scripting API under Unity Engine -> Attributes, or

http://docs.unity3d.com/412/Documentation/ScriptReference/20_class_hierarchy.Attributes.html

avatar image scottishrob13 · Mar 30, 2015 at 05:17 AM 0
Share

Thanks hexagonius, I found that link before. Unfortunately, there are some attributes missing such as the Tooltip attribute that I know for sure exist. Based on that information, I would assume that it's an outdated list.

avatar image hexagonius · Mar 30, 2015 at 08:05 AM 0
Share

Should have read my whole comment ;)

2 Replies

· Add your reply
  • Sort: 
avatar image
6
Best Answer

Answer by karl_ · Mar 27, 2015 at 05:10 PM

They're listed in the sidebar navigation of the docs under UnityEngine / Attributes. I couldn't find a page dedicated to just the property attributes though.

http://docs.unity3d.com/ScriptReference/RangeAttribute.html

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image scottishrob13 · Mar 30, 2015 at 05:19 AM 0
Share

Perfect! I have no idea how I missed that page. I spent about a week off and on looking at different sources and had even started to compile my own semi-complete list for reference because I wasn't able to find anything like that. The closest thing I could find was the link hexagonius mentioned, but that is by no means a complete list.

avatar image liortal · Aug 18, 2018 at 07:49 PM 0
Share

this page contains a list of all attributes: http://www.li0rtal.com/unity-attributes/

avatar image
1

Answer by amitkuliyal · Oct 13, 2017 at 01:11 PM

Here is the list of all the attributes available :

https://docs.unity3d.com/ScriptReference/AddComponentMenu.html

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Multiple Cars not working 1 Answer

Distribute terrain in zones 3 Answers

Set RangeAttribute to specific numbers 1 Answer

Variable declaration. Public vs indirect public? 3 Answers

Using attributes to store data at edit time 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges