get_deprecation_warnings
Check if a Unity class, method, or property is deprecated and get its replacement. Prevents errors from using outdated APIs like FindObjectOfType.
Instructions
Check whether a Unity class, method, or property is deprecated, and find the replacement.
Use this before using any API you suspect might be outdated. Catches common mistakes like using FindObjectOfType (deprecated) instead of FindAnyObjectByType.
Args: name: Class or member name to check. Examples: "WWW", "FindObjectOfType", "GUIText", "UnityEngine.Component.BroadcastMessage"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |