RequireTag attribute
See original GitHub issueWould 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:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top 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 >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
Done!
Maybe I’ll be able to automate it to work during playmode with instantiated objects but that’ll do for now 😃
@Deadcows Mainly with notifications.
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)