Skip to content

FindObjectByType<T>() deprecated #8

@jauntyjocularjay

Description

@jauntyjocularjay

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions