Search Issue Tracker

Fixed

Fixed in 6000.1.0b15

Votes

0

Found in

6000.1.0b14

7000.0.0a35

Issue ID

UUM-102356

Regression

Yes

Changing Shader Precision Model Triggers NullReferenceException in Project Settings

-

Steps to reproduce:

  1.  Create a new project
  2.  In Project Settings, go to Player > Shader Settings
  3. Change the "Shader Precision Model" option to either Unified or Platform Default
  4.  Observe the Console Window for any errors

\\
Actual results: NullReferenceException: SerializedObject of SerializedProperty has been Disposed.

Expected results: No warnings or errors should be thrown when changing the shader precision setting

\\
Reproducible with versions: 6000.1.0b13, 6000.1.0b14

Not reproducible with versions: 2022.3.60f1, 6000.0.43f1, 6000.1.0b12, 6000.2.0a7

\\
Tested on (OS): Windows 11

Few lines of error:
{code:java}
NullReferenceException: SerializedObject of SerializedProperty has been Disposed.
UnityEditor.SerializedProperty.get_propertyType () (at <7dc09cc2bf074b4aa413cc9edf45498a>:0)
UnityEditor.EditorGUILayout.IsChildrenIncluded (UnityEditor.SerializedProperty prop) (at <7dc09cc2bf074b4aa413cc9edf45498a>:0)
UnityEditor.EditorGUILayout.PropertyField (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, UnityEngine.GUILayoutOption[] options) (at <7dc09cc2bf074b4aa413cc9edf45498a>:0)
UnityEditor.PlayerSettingsEditor.OtherSectionShaderSettingsGUI (UnityEditor.Build.BuildPlatform platform) (at <7dc09cc2bf074b4aa413cc9edf45498a>:0)
UnityEditor.PlayerSettingsEditor.OtherSectionGUI (UnityEditor.Build.BuildPlatform platform, UnityEditor.Modules.ISettingEditorExtension settingsExtension, System.Int32 sectionIndex) (at <7dc09cc2bf074b4aa413cc9edf45498a>:0)
{code}

  1. Resolution Note:

    Postponed port

  2. Resolution Note (fix version 6000.1.0b15):

    Editor: Fix exception thrown when changing Shader Precision Model in Player Settings.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.