Search Issue Tracker

Fixed

Fixed in 1.2.X

Votes

0

Found in [Package]

1.0.16 (Patch 4)

1.2.0-exp.3 - Entities

7000.0.0a1

Issue ID

ECSB-773

Regression

No

GetComponentRO method throws a compilation error when not calling within SystemAPI class even if it is statically declared

Package: Entity Component System (ECS)

-

(Fabrice) : alternative repro, use DOTSlab here
https://dotslab.cds.internal.unity3d.com/?s=pZJNT8MwDIbvlfoffOwk1N1hmzRgoJ2GxtfZpN4WkSVV4g4mtP%2bO02xlAyQORG0UOa%2ftx46boO0SHq3mbTmxrFlTuMizpjUHRtbq2215vw1M6%2fHdVHR5VjcvRjQ1etZoQBkMAR4ocJLBOaTDJQbKs488A1m1d0yKqQK3Ie91RbBxuoKZfawrZCp6SSfydIhOB7wvS7SWz5pXY2MGD7i8cuvaWbI8OgSIirjKG%2bcnqFZF0UbZgoik5B4MR6fh9oDJK%2b39vrYhIrpFxwDKWaZ3PoNb4i7tfAYrDIByu661IZDanIc3IXQNA73X0irNoNCYfVukjeUpQUza74OnhfxYOWu2sEHfxmyLg2F72T1DeYowiM3vkEbFvtLyCU1D85k82nFxKRs7UCtSrwn4p%2bJPmP8g7HrlvLFFT8hS5l2eydeNVmDfKIbj95WpmnYlXiNjO1m%2fOR334nev2IH9EC%2bMQ4bg1hRjCs%2fuEw%3d%3d&resultType=CSharp

How to reproduce:
1. Open the “1709269_Entities_test” project
2. Open the “Assets/WireframeBlob/TestSystem.cs” script
3. Comment out line 14 and uncomment line 16
4. Save the script
5. Observe the Console

Expected result: No error is thrown
Actual result: “The name '__this' does not exist in the current context” error is thrown

Reproduced on: 1.0.16, 1.2.0-exp.3 (2022.3.14f1)

Reproduced with: Windows 10 (by reporter), Windows 11
Not reproduced with: No other environment tested

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.