v2018.3 for ReSharper 2018.3
citizenmatt
released this
18 Jan 21:06
·
0 commits
to 183
since this release
Please install from ReSharper's Extension Manager. Search for "Unity Support"
Note: this release is only for ReSharper. Rider support is bundled with Rider. This release is based on v2018.3.1 for Rider 2018.3.1, with some of the updates for Rider 2018.3.2.
Added
- Add parsing of method and class usage from scene, prefab and asset files (#263, RIDER-7460, #870, #873, #903, #921, RIDER-21907, RIDER-21897, #943, #949)
- Add "Unity event handler" gutter icon to method and property setters registered to a Unity event via the Unity editor
- Correctly mark event handlers as in use
- Unity files appear in Find Usages for event handlers and classes deriving from
MonoBehaviour
, grouped by type, component and object - Disable rename for event handler methods to prevent breaking the registration in scene files
- Add Code Vision highlighting for implicitly used classes, methods, properties and fields
- Add option to hide gutter icons (automatically disabled when Code Vision enabled)
- Add performance indicators for performance critical code contexts (#816, #878)
- Add performance indicator for null comparison against Unity object (RIDER-19297)
- Add performance indicator for
AddComponent
as an expensive method invocation (RIDER-19299) - Add performance indicator for
Find
methods (RIDER-19287) - Add performance indicator for
GetComponent
methods (RIDER-19288) - Add performance indicator for indirect invocation of expensive methods (#816)
- Add inspection to avoid string based method invocation (RIDER-19295, #798)
- Add inspection and Quick Fix to avoid repeat access of properties that make native calls (RIDER-19289, #797)
- Add inspection and Quick Fix to avoid instantiating an object and setting parent transform immediately after (RIDER-19298, #797)
- Add inspection and Quick Fix to use static
int
field to access graphics properties instead of string access (RIDER-19296, #783)) - Add inspection and Quick Fix to use non-allocating physics functions (RIDER-19290, #784)
- Add Context Action to move expensive expression to
Start
,Awake
or outside of loop (RIDER-19297, RIDER-19291, RIDER-19287, #878) - Add inspection and Quick Fix to avoid string based versions of
GetComponent
,AddComponent
andScriptableObject.CreateInstance
(RIDER-19293, #763) - Add inspection and Quick Fix for correct method signature for
DrawGizmo
attribute (#36, #772) - Add inspection for calling
base.OnGUI
inPropertyDrawer
derived class (#886, thanks @vinhui!) - Add suspicious comparison warning if comparing two Unity objects which don't have a common subtype (RIDER-18671, #7864))
- Add "Why is ReSharper/Rider suggesting this?" for most new inspections
- Add code completion, rename and find usages to string literal component and scriptable object type names (#835)
- Add file template for
[InitializeOnLoad]
class (#795)
Changed
- Updated to ReSharper 2018.3
- Improve performance of rename and find usages with YAML files (#983)
- Automatically disable YAML parsing if the project is too large (#973)
- Update API to Unity 2018.3.0b9 (#819, #897)
- Mark event handler methods and property setters as in use if they're declared on a base type (#922)
- Remove duplicate event functions from code completion (#685, #823)
- Improve redundant event function warnings (RIDER-19894, #794)
- Stop Generate Code dialog selecting all event functions by default when called from the gutter icon or Code Vision marker (RIDER-22211, #939)
- Prevent Respeller running on
.asmdef
files (RIDER-17701, #748)
Fixed
- Fix processing hierarchy for YAML scene files (#985)
- Fix C# language level override incorrectly handling
latest
(#871) - Fix to stop generating
readonly
modifier when converting auto property to property with serialised backing field (#892, #893) - Fix bug in ShaderLab parsing
Blend
operations (#723, #785) - Fix exception after renaming type (#820, RIDER-18699)
See also the Rider 2018.3 milestone, the Rider 2018.3.1 milestone and the Rider 2018.3.2 milestone.
See previous release notes for changes in 2018.2.1 for Rider 2018.2.1.