Skip to content
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

FindObjectByType<T>() deprecated #8

Open
jauntyjocularjay opened this issue Jan 21, 2025 · 0 comments
Open

FindObjectByType<T>() deprecated #8

jauntyjocularjay opened this issue Jan 21, 2025 · 0 comments

Comments

@jauntyjocularjay
Copy link

It looks like this method, which is used in a few places, is deprecated.

Assets\Scripts\ChekpointArea.cs(17,19): warning CS0618: 'Object.FindObjectOfType<T>()' is obsolete: 'Object.FindObjectOfType has been deprecated. Use Object.FindFirstObjectByType instead or if finding any instance is acceptable the faster Object.FindAnyObjectByType'

I have gone through and replaced Object.FindObjectOfType<T>() with Object.FindFirstObjectByType<T>(). I will see if that also works.

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

No branches or pull requests

1 participant