15,178

Downloads

1,699

Downloads of v 1.8.0

2017-05-19

Last published

Unity Support

1.8.0

Adds support for Unity.

• Highlights Unity event functions and fields with an icon in the editor gutter.

• Marks fields and methods implicitly used by Unity as in use.

• Knows about all Unity script classes (MonoBehaviour, ScriptableObject, EditorWindow, etc).

• Marks empty event methods as dead code.

• Supports Unity API 5.0 - 5.6, and 2017.1b5.

• Inspections and Quick Fixes for incorrect event function method signature and return types.

• Support for undocumented functions such as OnValidate and OnPreGeneratingCSProjectFiles.

• Warns if a coroutine return value is unused.

• Context action to convert event function method signature to/from coroutine.

• Use Generate Code to create event functions, with parameters.

• Start typing for automatic completion of event function declarations in a class.

• Event function descriptions for methods and parameters displayed in tooltips and QuickDoc

• "Read more" in QuickDoc navigates to Unity API documentation.

• Correctly update .meta files.

• Code completion, find usages and rename support for Invoke, InvokeRepeating, IsInvoking and CancelInvoke. Also Start/StopCoroutine.

• Inspection and Quick Fix to use CompareTag instead of string comparison.

• Inspection and Quick Fix for using new with ScriptableObject or MonoBehaviour.

• "Create serialized field" from usage Quick Fix.

• Suppress naming consistency checks on event functions.

• Prevent ReSharper from suggesting `Assets` or `Scripts` as part of the namespace of your code.

• Automatically sets Unity projects to C# 4 or C# 6. No more suggestions for features that won't compile!

• Highlights UnityEngine.Color and Color32. Edit via colour palette quick fix.

• Treats Unity debug assertions as assertion methods in ReSharper control flow analysis.

• String formatting assistance for debug log methods.

• Regex assistance for EditorTestsWithLogParser.ExpectLogLineRegex.

• Types and type members marked with UnityEngine.Networking attributes are marked as in use.

• Code completion, find usages and rename support for SyncVarAttribute hook function.

• Inspections for incorrect SyncVarAttribute usage.

• Marks empty event functions as dead code, with Quick Fix to remove.

Release Notes

• Inspection and quick fix for calling new on ScriptableObject and MonoBehaviour (#142)
• Inspections and quick fixes for incorrect method signature for InitializeOnLoad attributes (#143)
• Added base type required annotations for various attributes (#145)
• Added implicit use annotations for UnityEngine.Networking attributes (#136)
• Code completion, find usages and rename support for SyncVarAttribute hook function (#135)
• Inspection and quick fix to mark empty event functions as dead code (#137)
• Fixed bug in Invoke symbol resolution to check base class (#138)
• Support "hook" property of SyncVarAttribute (#136)

From 1.7.0:
• Support for ReSharper 2017.1 (#110)
• Fix incorrect signatures in known API (#128)
• Treats Assertion.Assert as assertion methods (#129)

From 1.6.2:
• Improve location of "Create serialized field" Quick Fix (#124)

From 1.6.1:
• Fix nasty bug that will recreate all .meta files when reloading projects. Sorry! (#118)

From 1.6.0:
• Correctly update .meta files when creating, renaming or refactoring (#56, #61)
• "Create serialized field" from usage Quick Fix (#111)
• Inspections and quick fixes for incorrect event function signature and return type
• Event functions that are coroutines are now recognised and marked as in use (#52)
• Context action to convert event function signature to/from coroutine
• Add coroutine and optional parameter information to API and tooltips
• Expand API support to 5.0 - 5.6
• Add regex annotations for EditorTestsWithLogParser.ExpectLogLineRegex (#95)
• Warn if coroutine return value is unused (#99)

From 1.5.0:
• ReSharper 2016.3 support (#80, #90)
• Add inspection and Quick Fix to use CompareTag instead of string comparison (#82)
• Support Unity API for 5.2 - 5.5 (#81)
• Support undocumented ScriptableObject.OnValidate and Reset (#79)
• Support method name in string literal of MonoBehaviour.IsInvoking (#85)
• Support method name in string literal for MonoBehaviour.Start/StopCoroutine (#83)
• Add gutter icon and "Create" context action for Unity classes (#77)
• Fix method generation for static event functions (#73)
• Improve recognition of serialised fields (#87)
• Remove duplicate items in auto complete list (#92)

From 1.4.0:
• Enable functionality in projects that reference Unity assemblies, not just those that have the VSTU project flavour GUID (#53)
• Improve handling of C# language version. Default is correctly set to C# 4, not 5. Uses C# 6 if option is enabled in Unity 5.5. Handles the CSharp60Support plugin. (#50, #60)
• Treat UnityEngine.Debug.Assert as assertion methods, so ReSharper includes asserts in control flow analysis. (#62, #63 - thanks @joshuaoconnor!)
• Add string formatting inspections for debug assertion messages.
• Renamed "message handlers" to "event functions", as per the Unity documentation.
• Display a "gutter" icon for implicitly used event functions and fields. (#58)
• Display colour highlights and the colour palette picker for UnityEngine.Color and UnityEngine.Color32. (#51)
• Fix MonoBehaviour.Invoke code completion and rename support in string literals to work with the correct class, not just the current class. (#66)
• Support undocumented messages, such as OnGeneratedCSProjectFiles. (#59)
• Fix namespace provider settings for Assets and Assets\Scripts folders. (#64)
• Sort event functions alphabetically by default in code completion.

From previous releases:
• ReSharper 2016.2 support. Thanks @cmcpasserby! (#44, #46)
• Added support for event functions for all Unity classes, not just MonoBehaviour. Thanks @swalex, @rorydriscoll! (#20, #29, #44)
• External annotations to improve ReSharper's analysis, e.g. implicit usage and nullability of Component.gameObject. Thanks @bigbadtrumpet! (#34, #13, #15, #23, #42, #43)
• Code completion, find usages and rename support for Invoke, InvokeRepeating and CancelInvoke (#41)
• Auto-suggest event function completion when creating methods
• Event function descriptions for methods and parameters displayed in tooltips and QuickDoc
• "Read more" in QuickDoc navigates to Unity API documentation
• Suppress naming consistency checks on event functions
• Add parameters to generated event functions (#8)
• Automatically sets Unity projects to C# 5. No more incompatible C# 6 suggestions! (#5)

Owners

Authors

JetBrains

Copyright

Copyright 2016 JetBrains, s.r.o

Tags

Dependencies

Version History

Version Downloads Last updated
Unity Support 2.0.0 302 Thursday, August 31 2017
Unity Support 1.9.1 1103 Friday, July 21 2017
Unity Support 1.9.0 0 Friday, July 21 2017
Unity Support 1.8.0 (this version) 1699 Friday, May 19 2017
Unity Support 1.7.0 1162 Wednesday, April 05 2017
Unity Support 1.6.2 938 Wednesday, March 22 2017
Unity Support 1.6.1 562 Wednesday, March 08 2017
Unity Support 1.6.0 289 Wednesday, March 01 2017
Unity Support 1.5.0 1182 Friday, December 30 2016
Unity Support 1.4.0 1139 Friday, November 18 2016
Unity Support 1.3.0 913 Monday, September 26 2016
Unity Support 1.2.1 1841 Saturday, April 16 2016
Unity Support 1.2.0 2542 Monday, November 16 2015
Unity Support 1.1.2 121 Friday, November 06 2015
Unity Support 1.1.2-EAP 73 Saturday, October 17 2015
Unity Support 1.0.0 707 Friday, October 16 2015