Search Issue Tracker
Won't Fix
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
- ":focus" style will not be shown when the UI element is unparented and reparented and the "Focus()" method is called without the "Blur()" method being called
- Crash on BucketAllocator::Allocate when importing TextMeshPro assets
- Playmode dropdown creates continuous "Layout update is struggling" errors at certain aspect ratios
- Editor takes a long time to open VFX Graph 'Subgraph' asset when it is heavily referenced by multiple other VFX Graphs
- "Editor Event Handler Error" error is thrown when using Terrain Tool shortcuts
Resolution Note:
No updates to MARS are planned at this time