Label/InfoBox with non-static access
See original GitHub issueHi! First I want to thank you for the awesome work, it’s really useful as I prefer not to waste time with custom editors. Everything is working fine and as expected.
Would it be imaginable to add a “Label” attribute that could display non-static informations about the object? A quick example :
[Label]
private string MyLabelText
{
get { return transform.childCount + " childs."; }
}
I was thinking something with the same design than InfoBox.
Thank you !
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Accessing non-static combbox property in the static method
If I made the combobox declaration as static then it can be accessed in that static method.But any alternative way to access combbox...
Read more >Cannot access non-static field 'queue' in static context
I try to access an initialized field while creating another field. The compiler is angry and I would like to know if there...
Read more >Why non-static variable cannot be referenced from a ...
In the static method, the method can only access only static data members and static methods of another class or same class but...
Read more >Why can static methods only use static data?
In this case, we're using it to return a new Foo with the added values ... Therefore, static methods cannot have access to...
Read more >Difference between static and non-static method in Java
A static method can only access static data members and static methods of another class or the same class but cannot access non-static...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Finished. I called it [ShowNativeProperty] However, it’s pretty limited. It can display only value types and string properties, because the EditorGUILayout class is very limited for non-serialized properties.
Oh, sweet! Thanks a lot 👍