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
- Render Pipeline Converter selected asset counter reports one fewer item when using manual selection
- [Android] [Adreno] [WebGL] A light cookie is not rendered with shader compile error when WebGL build is launched on a device with Adreno GPU
- Rigibody sliding over a flat surface that is made of several GameObjects detects false collisions when Collision Detection is set to "Continuous" or "Continuous Dynamic"
- UI Toolkit Label height is incorrectly calculated when using max-width with percentage value
- Visual Effect Material causes Scene view to update continuously when both Scene and Game views are open, despite "Always Refresh" being disabled
Resolution Note:
No updates to MARS are planned at this time