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
- Keywords on Material Variants aren't automatically saved when changed on original Material through Shader Graph
- Light Probes get baked when calling LightProbes.Tetrahedralize
- Shadows flicker and cause visual artifacts when modifying a GameObject's bounds using Swizzle (Y Mask) and Sine Time nodes
- [WebGL] Frame rate drops by 5-20 fps when moving cursor or touch input in the Player
- Light bleeds when using box shaped spotlight with specific Emission Range values
Resolution Note:
No updates to MARS are planned at this time