{"record":{"id":"7aec9b52b997278e","repo":"Unity-Technologies/UnityCsReference","slug":"lightmapping-additionalbakedprobescompleted-is-obs","errorCode":null,"errorMessage":"Lightmapping.additionalBakedProbesCompleted is obsolete. Please use UnityEngine.LightTransport.IProbeIntegrator instead.","messagePattern":"Lightmapping\\.additionalBakedProbesCompleted is obsolete\\. Please use UnityEngine\\.LightTransport\\.IProbeIntegrator instead\\.","errorType":"exception","errorClass":"NotSupportedException","httpStatus":null,"severity":"error","filePath":"Editor/Mono/GI/Lightmapping.bindings.cs","lineNumber":916,"sourceCode":"            return BakeSceneAsync(targetScene);\n        }\n\n        [FreeFunction(\"BakeAsync\", ThrowsException = true)]\n        static extern bool BakeSceneAsync(Scene targetScene);\n\n        public static bool Bake(Scene targetScene)\n        {\n            RenderPipelineManager.TryPrepareRenderPipeline(GraphicsSettings.currentRenderPipeline);\n            return BakeScene(targetScene);\n        }\n\n        [FreeFunction(\"Bake\", ThrowsException = true)]\n        static extern bool BakeScene(Scene targetScene);\n\n        [Obsolete(\"Please use UnityEngine.LightTransport.IProbeIntegrator instead. This API is removed and will throw if used.\", true)]\n        public static event Action additionalBakedProbesCompleted\n        {\n            add => throw new NotSupportedException(\"Lightmapping.additionalBakedProbesCompleted is obsolete. Please use UnityEngine.LightTransport.IProbeIntegrator instead.\");\n            remove => throw new NotSupportedException(\"Lightmapping.additionalBakedProbesCompleted is obsolete. Please use UnityEngine.LightTransport.IProbeIntegrator instead.\");\n        }\n\n        [Obsolete(\"Please use UnityEngine.LightTransport.IProbeIntegrator instead.\", true)]\n        public unsafe static bool GetAdditionalBakedProbes(int id, NativeArray<SphericalHarmonicsL2> outBakedProbeSH, NativeArray<float> outBakedProbeValidity)\n        {\n            return false;\n        }\n        [Obsolete(\"Please use UnityEngine.LightTransport.IProbeIntegrator instead.\", true)]\n        public unsafe static bool GetAdditionalBakedProbes(int id, Span<SphericalHarmonicsL2> outBakedProbeSH, Span<float> outBakedProbeValidity, Span<float> outBakedProbeOctahedralDepth)\n        {\n            return false;\n        }\n        [Obsolete(\"Please use UnityEngine.LightTransport.IProbeIntegrator instead.\", true)]\n        public unsafe static bool GetAdditionalBakedProbes(int id, NativeArray<SphericalHarmonicsL2> outBakedProbeSH, NativeArray<float> outBakedProbeValidity, NativeArray<float> outBakedProbeOctahedralDepth)\n        {\n            return false;\n        }","sourceCodeStart":898,"sourceCodeEnd":934,"githubUrl":"https://github.com/Unity-Technologies/UnityCsReference/blob/225b0fbdb57cc17d094e8056b71f8314aba56f73/Editor/Mono/GI/Lightmapping.bindings.cs#L898-L934","documentation":"Lightmapping.additionalBakedProbesCompleted is decorated [Obsolete(..., error:true)] and its add/remove accessors throw NotSupportedException. Unity removed the API in favor of UnityEngine.LightTransport.IProbeIntegrator; the related GetAdditionalBakedProbes overloads are likewise obsolete and return false. Any subscribe/unsubscribe or call is now a hard error.","triggerScenarios":"Subscribing/unsubscribing Lightmapping.additionalBakedProbesCompleted += handler; calling GetAdditionalBakedProbes; code ported from an older Unity version where this event existed.","commonSituations":"Upgrading a project across a Unity version boundary where the probe API was replaced by IProbeIntegrator; third-party assets targeting the old API; copy-pasted tutorial code.","solutions":["Remove the subscription and implement UnityEngine.LightTransport.IProbeIntegrator for probe integration callbacks.","If you only need bake completion, use Lightmapping.bakeCompleted instead.","Search and remove all references to additionalBakedProbesCompleted and GetAdditionalBakedProbes."],"exampleFix":"// before\nLightmapping.additionalBakedProbesCompleted += OnProbesCompleted;\n// after\n// implement UnityEngine.LightTransport.IProbeIntegrator and register it\n// with the LightTransport bake pipeline","handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":["Treat [Obsolete(error:true)] as a hard removal; migrate before upgrading Unity.","Replace additionalBakedProbesCompleted with UnityEngine.LightTransport.IProbeIntegrator.","Pin third-party assets that touch probe APIs to versions supporting IProbeIntegrator."],"tags":["lightmapping","gi","obsolete","api-removal","probes","unity"],"backgroundTag":null,"analyzedSha":"225b0fbdb57cc17d094e8056b71f8314aba56f73","analyzedAt":"2026-08-13T19:07:19.849Z","schemaVersion":2},"datasetVersion":"2026-08-13T19:17:28.613Z"}