Skip to content

Commit 5fbd581

Browse files
svc-reach-platform-supportEvergreen
authored andcommitted
[Port] [6000.5] [Core] Fix obsolete use of FindFirstObjectByType in samples common
1 parent 1c1e679 commit 5fbd581

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Packages/com.unity.render-pipelines.core/Samples~/Common/Scripts/Editor/SamplesShowcaseEditorWindow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ static void Init()
1919

2020
static void SceneOpened(Scene scene, OpenSceneMode openSceneMode)
2121
{
22-
var currentShowcase = (SamplesShowcase)FindFirstObjectByType(typeof(SamplesShowcase));
22+
var currentShowcase = (SamplesShowcase)FindAnyObjectByType(typeof(SamplesShowcase));
2323
if(currentShowcase != null)
2424
Selection.activeGameObject = currentShowcase.gameObject;
2525
}

0 commit comments

Comments
 (0)