Search Issue Tracker

Fixed in 2022.2.X

Votes

0

Found in

2022.2.0a9

Issue ID

1416878

Regression

Yes

Editor crashes when a GameObject is drag and dropped into a Script field

UI Toolkit

-

How to reproduce:
1. Open users attached project
2. In the Hierarchy window select the "GameManger" GameObject
3. In the Inspector window locate Game Manager (script)
4. Drag and drop any GameObject into Script filed

Expected result: Can't drop GameObjects into a Script field
Actual result: Editor Crashes

Reproducible with: 2022.2.0a9, 2022.2.0a10
Not reproducible with: 2019.4.38f1, 2020.3.32f1, 2021.2.16f1, 2021.3.0f1, 2022.1.0b14, 2022.2.0a8

Note: Look at the attached video "crash.mp4" for clarity

Stacktrace:
SerializedProperty::GetContentHash
SerializedProperty_CUSTOM_GetContentHashInternal
UnityEditor.SerializedProperty:GetContentHashInternal
UnityEditor.SerializedProperty:get_contentHash

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.