Skip to content

Comment out annotation on ExecuteAlways #1642

New issue

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

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

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 1, 2020

Conversation

citizenmatt
Copy link
Member

@citizenmatt citizenmatt commented May 1, 2020

Remove the [BaseTypeRequired(typeof(MonoBehaviour))] external annotation from the ExecuteAlways attribute. This attribute can be applied to types deriving from MonoBehaviour, but also from Unity.Entities.SystemBase, although this is not currently documented in the docs for ExecuteAlways.

although I suppose ComponentSystemBase would be a better test since that would also cover ComponentSystem and JobComponentSystem variants

This PR comments out the annotation. It doesn't delete it so that we don't accidentally add it again. We don't have tests for annotations, and we especially don't have tests for absence of a warning.

See also #1639 about restoring this functionality but with a choice of base type between MonoBehaviour and SystemBase/ComponentSystemBase.

@citizenmatt citizenmatt added this to the Rider 2020.1.2 milestone May 1, 2020
@citizenmatt citizenmatt requested a review from van800 May 1, 2020 12:53
@citizenmatt citizenmatt self-assigned this May 1, 2020
@krasnotsvetov krasnotsvetov self-requested a review May 1, 2020 13:22
@citizenmatt citizenmatt merged commit 5ee2850 into net201 May 1, 2020
@citizenmatt citizenmatt deleted the bug/execute-always-annotation branch May 1, 2020 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants