Search Issue Tracker
Fixed in 5.4.0
Votes
1
Found in
5.1.0f3
Issue ID
707815
Regression
No
GameObject.SetActive() seems to affect assignment value to RectTransform.position
To reproduce:
1. Import the package attached, open the project, go into the testScene. press play.
2. In game scene, press F, you will find the UI prefab is loaded. press F again, you will find the position of panel is reset.
3. If you disable the two setActive statements in start and update in script, or just delete them, you will find it turns to be OK. Press F once, and the position is reset at once.
4. Besides, if you use recttransform.anchoredPosition to replace recttransform.position, then everything is oK in both the two situations mentioned above.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on RaiseException when opening a specific project
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
- Scene view has Y coordinates of the Screen Position node flipped when some of the URP features are disabled
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
Add comment