Search Issue Tracker

Fixed

Fixed in 2022.3.53f1, 6000.0.28f1, 6000.1.0a5, 7000.0.0a10

Votes

0

Found in

2021.3.45f1

2022.3.50f1

6000.0.23f1

6000.1.0a1

7000.0.0a7

Issue ID

UUM-84202

Regression

No

"Unity.Mathematics.AffineTransform.identity" returns a zero-filled value when a project is built with an IL2CPP background

-

How to reproduce:
1. Open the “AffineTransform.zip“ project
2. Build and run the “SampleScene“ with a IL2CPP background
3. Observe the label at the top-left corner of the build

Expected result: “AffineTransform((1f, 0f, 0f, 0f, 1f, 0f, 0f, 0f, 1f), (0f, 0f, 0f))” is displayed
Actual result: “AffineTransform((0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f), (0f, 0f, 0f))” is displayed

Reproducible in: 2021.3.45f1, 2022.3.50f1, 6000.0.23f1

Reproduced on: Windows 11 Pro (23H2)
Not reproduced on: No other environment tested

Notes:
- Not reproducible in Mono builds or the Editor
- The user states that it is likely caused because “AffineTransform has [Il2CppEagerStaticClassConstruction] and is initialized before float3x3, but [AffineTransform] depends on float3x3.identity“
- In “Unity.Mathematics” versions 1.2.6 and below, the “AffineTransform” does not exist

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.