Search Issue Tracker
Won't Fix
Votes
2
Found in
5.4.3p3
Issue ID
860983
Regression
No
RectMask2D doesn't update when the parent size is changed
Description: RectMask2D doesn't update when the parent size is changed. After increasing parent size the "Child" game object should be visible, but it's not.
You need to manually disable RectMask2D component on "Parent" game object, and then enable it again to make "Child" game object visible.
To reproduce:
1. Open the 'main.unity' scene.
2. Run the game.
3. Click on 'Enlarge parent'
This will increase parent size, but child object is not visible.
4. Click on 'Fix mask'
This disables and enables RectMask2D component, and then child game object becomes visible.
Note: You can do step 4 first and then step 3, child object will be visible as long as you disable and enable RectMask2D component at some point while in Play mode.
Reproduces with: 5.3.0f4: 5.4.3p3: 5.5.0p1; 5.6.0b1
Note: In 5.3.0f4 disabling and enabling the component doesn't fix the problem.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
nox_pp
Mar 25, 2017 18:04
Apart from disabling and re-enabling the RectMask2D on the "Parent" game object, I've found that there are other ways to force the mask to update, such as applying a small transformation to the child every time the size of the RectMask2D changes. Nonetheless, this blows.