Search Issue Tracker
By Design
Votes
0
Found in [Package]
3.0.6
Issue ID
1195045
Regression
No
[Improved Prefab] Blue highlight is missing on making changes in prefab of SpriteShapeProfile
Blue highlight is missing on making changes in prefab of SpriteShapeProfile
1. Create a new Project
2. Open Window > Package Manager
3. Click on Window > Package Manager > 2D SpriteShape > Install
4. Click on Project > Assets > right-click > Create > Sprite Shape profile > OpenShape
5. Drag and drop New SpriteShapeProfile in Hierarchy from Project window
6. Create a prefab by drag and drop it in Project > Assets from Hierarchy
7. Change value of Hierarchy > New SpriteShapeProfile > Inspector > SpriteShapeController > Corner Threshold
Expected Result:
Blue highlight appears on the left of Corner Threshold
Actual Result:
Blue highlight is missing
Reproducible in: 2020.1.0a11, 2019.3.0b9. 2019.3.0a10
Environment: Windows 10 and Mac 10.14
Note: 2019.3.0a9 or below 2D SpriteShape package was in preview
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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Resolution Note:
The code uses an overload of EditorGUILayout.Slider that doesn't take a SerializedProperty as argument; that's why the blue override margin and other Prefab handling isn't there. Passing in "m_CornerAngleThresholdProp.floatValue" does NOT mean it's using SerializedProperty, since a float value and not the property itself as passed to the method.
To make it work, replace this:
EditorGUILayout.Slider(Contents.cornerThresholdDetail, m_CornerAngleThresholdProp.floatValue, 0.0f, 90.0f);
With this:
EditorGUILayout.Slider(m_CornerAngleThresholdProp, 0.0f, 90.0f, Contents.cornerThresholdDetail);
This is by design.