Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
1.0.0
Issue ID
ECSB-365
Regression
No
EntitiesGraphicsSystem fails to validate ForwardPlus for URP when using 2D URP Core template
How to reproduce:
1. Download and open the attached project
2. Enter Play mode
3. Observe the Console window
Expected outcome: No errors appear in the Console window
Actual outcome: The following error appears in the Console window -
"TargetException: Non-static field requires a target
System.Reflection.RuntimeFieldInfo.GetValue (System.Object obj) (at <27586baf39bf4babbfd8a2caabe8e228>:0)
Unity.Rendering.EntitiesGraphicsSystem.ValidateUsingURPForwardPlus () (at ./Library/PackageCache/com.unity.entities.graphics@1.0.0-pre.65/Unity.Entities.Graphics/EntitiesGraphicsSystem.cs:752)
Unity.Rendering.EntitiesGraphicsSystem.OnCreate () (at ./Library/PackageCache/com.unity.entities.graphics@1.0.0-pre.65/Unity.Entities.Graphics/EntitiesGraphicsSystem.cs:817)
Unity.Entities.ComponentSystemBase.CreateInstance (Unity.Entities.World world) (at ./Library/PackageCache/com.unity.entities@1.0.0-pre.65/Unity.Entities/ComponentSystemBase.cs:221)
Unity.Entities.World.AddSystem_OnCreate_Internal (Unity.Entities.ComponentSystemBase system) (at ./Library/PackageCache/com.unity.entities@1.0.0-pre.65/Unity.Entities/World.cs:467)
Unity.Entities.World.GetOrCreateSystemsAndLogException (System.Collections.Generic.IEnumerable`1[T] types, System.Int32 typesCount, Unity.Collections.AllocatorManager+AllocatorHandle allocator) (at ./Library/PackageCache/com.unity.entities@1.0.0-pre.65/Unity.Entities/World.cs:1150)
UnityEngine.Debug:LogException(Exception)
Unity.Debug:LogException(Exception) (at ./Library/PackageCache/com.unity.entities@1.0.0-pre.65/Unity.Entities/Stubs/Unity/Debug.cs:19)
Unity.Entities.World:GetOrCreateSystemsAndLogException(IEnumerable`1, Int32, AllocatorHandle) (at ./Library/PackageCache/com.unity.entities@1.0.0-pre.65/Unity.Entities/World.cs:1156)
Unity.Entities.World:GetOrCreateSystemsAndLogException(Type[], AllocatorHandle) (at ./Library/PackageCache/com.unity.entities@1.0.0-pre.65/Unity.Entities/World.cs:1182)
Unity.Entities.DefaultWorldInitialization:AddSystemToRootLevelSystemGroupsInternal(World, IEnumerable`1, ComponentSystemGroup, DefaultRootGroups) (at ./Library/PackageCache/com.unity.entities@1.0.0-pre.65/Unity.Entities/DefaultWorldInitialization.cs:235)
Unity.Entities.DefaultWorldInitialization:AddSystemToRootLevelSystemGroupsInternal(World, IEnumerable`1) (at ./Library/PackageCache/com.unity.entities@1.0.0-pre.65/Unity.Entities/DefaultWorldInitialization.cs:274)
Unity.Entities.DefaultWorldInitialization:Initialize(String, Boolean) (at ./Library/PackageCache/com.unity.entities@1.0.0-pre.65/Unity.Entities/DefaultWorldInitialization.cs:154)
Unity.Entities.DefaultWorldInitialization:DefaultLazyEditModeInitialize() (at ./Library/PackageCache/com.unity.entities@1.0.0-pre.65/Unity.Entities/DefaultWorldInitialization.cs:341)
Unity.Scenes.SubScene:OnEnable() (at ./Library/PackageCache/com.unity.entities@1.0.0-pre.65/Unity.Scenes/SubScene.cs:318)"
Reproducible with: 2020.3.48f1, 2021.3.26f1, 2022.2.21f1, 2023.1.0b18, 2023.2.0a16
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
- [Dragon Crashers] Build fails in U6
- [Dragon Crashers] 4 Shader error messages on import
- [Dragon Crashers] Readme text is white on light grey
- Cursor stays in front of the first character when entering text in the TextMeshPro field
- Searching in Hierarchy causes unwanted component calls
Resolution Note:
The issue is not reproducible any more with the latest Unity 6 / ECS