Search Issue Tracker
Won't Fix
Won't Fix in 1.5.X
Votes
0
Found in [Package]
1.5.0
1.5.1
Issue ID
MARS-1518
Regression
No
Mars Material Inspector with URP uses obsolete API
Synopsis
Adding URP 15.0.4 to a project that uses Mars causes Console errors regarding obsolete APIs. Without URP, these errors do not occur.
I flagged this as a regression, though strictly speaking other parts of Unity software have moved on, leaving Mars using an obsolete API.
Configuration
Unity 2023.1.0b7
Mars 1.5.0 or 1.5.1
URP 15.0.4
Mac M1 or Intel
How to See the Bug
Open the attached project using Unity 2023.1.0b7.
Choose Ignore when asked about Safe Mode.
In Console you will see the errors listed below.
(There will be additional errors, but click Clear to hide them.)
Alternatively, see steps below if you wish to set up this repro project from scratch.
Note that creating an URP Asset, enabling it in Graphics Settings, and converting all materials to URP does not alleviate the errors listed below.
Console Errors
Library/PackageCache/com.unity.mars@1.5.0/Editor/Scripts/Simulation/MarsParticleMaterialInspector.cs(61,21): error CS0619: 'BaseShaderGUI.MaterialChanged(Material)' is obsolete: 'MaterialChanged has been renamed ValidateMaterial'
Library/PackageCache/com.unity.mars@1.5.0/Editor/Scripts/Simulation/MarsParticleMaterialInspector.cs(93,13): error CS0619: 'BaseShaderGUI.MaterialChanged(Material)' is obsolete: 'MaterialChanged has been renamed ValidateMaterial'
Library/PackageCache/com.unity.mars@1.5.0/Editor/Scripts/Simulation/MarsMaterialInspector.cs(105,25): error CS0619: 'BaseShaderGUI.MaterialChanged(Material)' is obsolete: 'MaterialChanged has been renamed ValidateMaterial'
Library/PackageCache/com.unity.mars@1.5.0/Editor/Scripts/Simulation/MarsMaterialInspector.cs(168,13): error CS0619: 'BaseShaderGUI.MaterialChanged(Material)' is obsolete: 'MaterialChanged has been renamed ValidateMaterial'
How to Create the Repro Project
Unity Hub > New Project > Unity 2023.1.0b7 > 3D Core
Edit > Import Package > Custom Package > MARS_Installer.unitypackage
Package Manager > URP 15.0.4 > Install
The following Console errors occur. Upgrading to Mars 1.5.1 via package manifest edits yields the same errors.
Converting materials to URP per steps below does not alleviate errors.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Localization Group Rules bypasses Locale logic when SharedGroup asset provided
- UI Toolkit World UI Text Field unfocuses immediately when clicking on it using XR Controller
- Crash on CallWindowProcW when entering Play mode for the second time and running the Editor in the background while using System.Windows.Forms functions
- 2D Freeform Light shadows disappear when light center is offset from shape bounds
- Crash on MarkAllDependencies when opening scenes with Assets from the YarnSpinner package
Resolution Note:
No updates to MARS are planned at this time
Resolution Note (1.5.X):
No updates to MARS are planned at this time