Search Issue Tracker

Fixed

Fixed in 1.1.0-exp.1 - Entities

Votes

1

Found in [Package]

1.0.0

1.1.0 - Entities

Issue ID

ECSB-282

Regression

No

Code generation failure happens when using SystemAPI.Time.DeltaTime in a class that inherits from SystemBase

Package: Entity Component System (ECS)

-

Reproduction steps:
1. Open project “DeltaTime”
2. Observe the Console window

Expected result: no errors are thrown
Actual result: “Processing assembly Library/Bee/artifacts/1900b0aE.dag/Assembly-CSharp.dll, with 124 defines and 257 references“ error is thrown

Reproducible with: 1.0.0-pre.65 (2022.2.16f1, 2023.1.0b13, 2023.2.0a11)
Couldn’t test with: 0.51.1-preview.21 (2020.3.47f1, 2021.3.23f1, 2022.2.16f1, 2023.1.0b13, 2023.2.0a11) (compiler errors)

Reproducible on: Windows 11

Notes:
- Commenting out line 28 and uncommenting line 29 in “Assets\Repro.cs” gives expected results
- The documentation states: SystemBase.Time and SystemState.Time are now deprecated and you should use SystemAPI.Time instead: [https://docs.unity3d.com/Packages/com.unity.entities@1.0/manual/upgrade-guide.html#update-systembasetime-and-systemstatetime|https://docs.unity3d.com/Packages/com.unity.entities@1.0/manual/upgrade-guide.html#update-systembasetime-and-systemstatetime]

  1. Resolution Note (fix version 1.1.0-exp.1 - Entities):

    ILPP patching now correctly handles override methods with modifiers on arguments (corresponding test: https://github.cds.internal.unity3d.com/unity/dots/pull/10101/files#diff-f2839a608e619c3a3524b7220a7fd5b783714adacf1ce94c09c401e0bef30df1R53-R55)

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.