How to reproduce:
1. Create a new Unity project
2. Go to AI -> Agree and install Unity AI
3. Open the AI Assistant and ask to generate any scene
4. Wait for the generation to finish and observe the Console
Expected results: No compilation errors are thrown
Actual results: "Instantiating material due to calling renderer.material during edit mode" error is thrown
Reproducible with: 2.7.0-pre.2
Not reproducible with: No other environment tested
Reproducible on: macOS Tahoe 26 (M1)
Not reproducible on: No other environment tested
First lines of error:
Instantiating material due to calling renderer.material during edit mode. This will leak materials into the scene. You most likely want to use renderer.sharedMaterial instead.
UnityEngine.Renderer:get_material ()
Unity.AI.Assistant.Agent.Dynamic.Extension.Editor.CommandScript:Execute (Unity.AI.Assistant.Agent.Dynamic.Extension.Editor.ExecutionResult)