Search Issue Tracker
Active
Under Consideration for 1.0.X
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
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- On Script import/reimport MonoImporter does not generate consistent results due to updating Custom packages
- [Entities Graphics] Size of the Content Update generated folder increases when changes are made to the Scene
- In Play Mode, an extra Sync Call is made every frame when a GameObject has a Rigidbody 2D component
- Crash on block_remove when a scene is opened in a specific project
- The GameObject with a Hinge Joint Component does not return to the initial position when the Use Motor property is toggled off
Add comment