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.

RequireTag attribute

See original GitHub issue

Would be nice if we had a RequireTag attribute that functions similar to RequireComponent attribute.

Example:

    [RequireTag("Enemy")]
    public class Enemy : MonoBehaviour {
    }

And if someone tries to attach this component to a game-object that does not have the tag set as Enemy, it will log a warn/error in the inspector.

(Could also make a RequireLayer attribute too.)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
Deadcowscommented, Sep 2, 2019

Done!

Maybe I’ll be able to automate it to work during playmode with instantiated objects but that’ll do for now 😃

1reaction
wqyeocommented, Sep 2, 2019

@Deadcows Mainly with notifications.

From email; (Github notifies me via email) I get pop-up notifications from my email application whenever someone emails me.

Though when I loaded my project with the previous version of MyBox, it does show new-version released message in the log. So it is working as intended 👍
(Not as a warning though, but as a simple log)

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTML input required Attribute
The required attribute is a boolean attribute. When present, it specifies that an input field must be filled out before submitting the form....
Read more >
HTML attribute: required - MDN Web Docs
The Boolean required attribute, if present, indicates that the user must specify a value for the input before the owning form can be ......
Read more >
RequiredAttribute Class (System.ComponentModel. ...
The RequiredAttribute attribute specifies that when a field on a form is validated, the field must contain a value. A validation exception is...
Read more >
required - CSS: Cascading Style Sheets - MDN Web Docs
The :required CSS pseudo-class represents any , , or element that has the required attribute set on it.
Read more >
How to set HTML5 required attribute in Javascript?
required is a reflected property (like id , name , type , and such), so: element.required = true; ...where element is the actual...
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