question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Label/InfoBox with non-static access

See original GitHub issue

Hi! 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:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dbrizovcommented, Nov 17, 2017

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.

0reactions
Souk21commented, Nov 17, 2017

Oh, sweet! Thanks a lot 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found