Search Unity

Bug SerializedObjectNotCreatableException: Object at index 0 is null

Discussion in 'Editor & General Support' started by peepo12343, Mar 9, 2023.

  1. peepo12343

    peepo12343

    Joined:
    Jul 11, 2021
    Posts:
    12
    Hello,
    I was playing around with the shadow caster 2D components and I wanted to use the composite shadow caster 2D. I created an environment but I was hit with an editor error.

    SerializedObjectNotCreatableException: Object at index 0 is null
    UnityEditor.Editor.CreateSerializedObject () (at <d18341e808be4529a1a4512a7e51ab3d>:0)
    UnityEditor.Editor.GetSerializedObjectInternal () (at <d18341e808be4529a1a4512a7e51ab3d>:0)
    UnityEditor.Editor.get_serializedObject () (at <d18341e808be4529a1a4512a7e51ab3d>:0)
    UnityEditor.Rendering.Universal.ShadowCaster2DEditor.OnEnable () (at ./Library/PackageCache/com.unity.render-pipelines.universal@14.0.6/Editor/2D/ShadowCaster2DEditor.cs:68)

    I tried to remove URP and install it again but this didn't fix the issue. Does anyone know how to fix it?
    (using Unity Editor 2022.2.9)