From e0118cfd16a9b4b777a113d77f318f496348e0cc Mon Sep 17 00:00:00 2001 From: Sebastien Lebreton Date: Mon, 21 Sep 2026 15:10:02 +0200 Subject: [PATCH] Add AssetPostprocessor.OnProcessScene stub Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: a55081a3-918d-465b-88f4-d05a305b3bc1 --- src/Microsoft.Unity.Analyzers/UnityStubs.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/Microsoft.Unity.Analyzers/UnityStubs.cs b/src/Microsoft.Unity.Analyzers/UnityStubs.cs index 08dd8a0..37cf21f 100644 --- a/src/Microsoft.Unity.Analyzers/UnityStubs.cs +++ b/src/Microsoft.Unity.Analyzers/UnityStubs.cs @@ -607,6 +607,11 @@ class Physics class RequireComponent : Attribute { } } +namespace UnityEngine.SceneManagement +{ + struct Scene { } +} + namespace UnityEngine.EventSystems { abstract class UIBehaviour : MonoBehaviour @@ -687,6 +692,11 @@ void Reset() { } } } +namespace UnityEditor.Build.Content +{ + struct SceneImportContext { } +} + namespace UnityEditor.Callbacks { class DidReloadScripts : Attribute { } @@ -695,7 +705,9 @@ class DidReloadScripts : Attribute { } namespace UnityEditor { using AssetImporters; + using Build.Content; using UnityEngine; + using UnityEngine.SceneManagement; using UnityEngine.UIElements; class AssetDatabase { } @@ -766,6 +778,7 @@ void OnPostprocessTexture(Texture2D texture) { } void OnPostprocessPrefab(GameObject gameObject) { } void OnPostprocessTexture2DArray(Texture2DArray texture) { } void OnPostprocessTexture3D(Texture3D texture) { } + void OnProcessScene(Scene scene, SceneImportContext sceneContext) { } void OnPreprocessAnimation() { } void OnPreprocessAsset() { }