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() { }