Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Inspection for CompareTag #82

Closed
citizenmatt opened this issue Dec 9, 2016 · 0 comments
Closed

Inspection for CompareTag #82

citizenmatt opened this issue Dec 9, 2016 · 0 comments
Assignees

Comments

@citizenmatt
Copy link
Member

Performing equality on GameObject.Tag is expensive. It should call CompareTag instead. Add an inspection for gameObject.Tag == "whatever", set to Warning level, and convert to gameObject.CompareTag("whatever").

(This might even be possible with an SSR pattern in a settings file)

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant