How to reproduce:
1. Create a new 2D Unity project
2. Go Window -> Package Management -> Package Manager
3. Select the "2D SpriteShape" package -> Samples -> Sprite Shape Extras -> Import
4. Observe the results
Expected results: No warnings are thrown
Actual results: Obsolete methods warnings are thrown
Reproducible with: 14.0.1 (6000.4.4f1), 15.0.2 (6000.5. 0b4, 6000.6.0a3)
Not reproducible with: 13.0.0 (6000.0.73f1, 6000.3.14f1)
Reproducible on: macOS Tahoe 26, Ubuntu 24
Not reproducible on: No other environment tested
Note: Not a regression because it is the Editor change and the samples were not updated to match it
Warnings:
- Assets/Samples/2D SpriteShape/14.0.1/Sprite Shape Extras/Scripts/GenerateSpriteShapes.cs(21,131): warning CS0618: 'FindObjectsSortMode' is obsolete: 'FindObjectsSortMode has been deprecated. Use the FindObjectsByType overloads that do not take a FindObjectsSortMode parameter.'
- Assets/Samples/2D SpriteShape/14.0.1/Sprite Shape Extras/Scripts/GenerateSpriteShapes.cs(21,81): warning CS0618: 'Object.FindObjectsByType<T>(FindObjectsSortMode)' is obsolete: 'FindObjectsByType with FindObjectsSortMode parameter has been deprecated. Use FindObjectsByType<T>() or FindObjectsByType<T>(FindObjectsInactive) instead. InstanceID will be replaced in the future with EntityId and previous sort order cannot be maintained.'