Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Unity SW PackNew to Visual Studio Code? Get it now.
Unity SW Pack

Unity SW Pack

SangwookYoo

|
290 installs
| (1) | Free
Unity Extension for Visual Studio Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info


OverView

  • This extension provides a Unity development environment for VS Code.

Features

  • ✅ Provides code snippets for Unity
    • List of code snippets
      • Game Classes:

        • MonoBehaviour
        • NetworkBehaviour
        • ScriptableObject
      • Editor Classes:

        • Editor
      • Visual Studio Tools for Unity:

        • Debug.Log() (type log)
        • Debug.LogError() (type logError)
        • Debug.LogWarning() (type logWarning)
      • MonoBehaviour Methods:

        • Awake()
        • FixedUpdate()
        • LateUpdate()
        • OnAnimatorIK()
        • OnAnimatorMove()
        • OnApplicationFocus()
        • OnApplicationPause()
        • OnApplicationQuit()
        • OnAudioFilterRead()
        • OnBecameInvisible()
        • OnBecameVisible()
        • OnBeforeTransformParentChanged()
        • OnCanvasGroupChanged()
        • OnCollisionEnter()
        • OnCollisionEnter2D()
        • OnCollisionExit()
        • OnCollisionExit2D()
        • OnCollisionStay()
        • OnCollisionStay2D()
        • OnConnectedToServer()
        • OnControllerColliderHit()
        • OnDestroy()
        • OnDisable()
        • OnDisconnectedFromMasterServer()
        • OnDisconnectedFromServer()
        • OnDrawGizmos()
        • OnDrawGizmosSelected()
        • OnEnable()
        • OnFailedToConnect()
        • OnFailedToConnectToMasterServer()
        • OnGUI()
        • OnJointBreak()
        • OnJointBreak2D()
        • OnLevelWasLoaded()
        • OnMasterServerEvent()
        • OnMouseDown()
        • OnMouseDrag()
        • OnMouseEnter()
        • OnMouseExit()
        • OnMouseOver()
        • OnMouseUp()
        • OnMouseUpAsButton()
        • OnNetworkInstantiate()
        • OnParticleCollision()
        • OnParticleSystemStopped()
        • OnParticleTrigger()
        • OnParticleUpdateJobScheduled()
        • OnPlayerConnected()
        • OnPlayerDisconnected()
        • OnPostRender()
        • OnPreCull()
        • OnPreRender()
        • OnRectTransformDimensionsChange()
        • OnRectTransformRemoved()
        • OnRenderImage()
        • OnRenderObject()
        • OnSerializeNetworkView()
        • OnServerInitialized()
        • OnTransformChildrenChanged()
        • OnTransformParentChanged()
        • OnTriggerEnter()
        • OnTriggerEnter2D()
        • OnTriggerExit()
        • OnTriggerExit2D()
        • OnTriggerStay()
        • OnTriggerStay2D()
        • OnValidate()
        • OnWillRenderObject()
        • Reset()
        • Start()
        • Update()
  • ✅ [ON/OFF] Shows Scene and Prefab referenced by Script
  • ✅ [ON/OFF] Indicates Unity event bindings
  • ✅ [ON/OFF] Indicates Unity event function
  • ✅ [ON/OFF] Displays explanations of Unity messages on Hover
  • ✅ [ON/OFF] Provide function signature change (Type toggle) between void-IEnumerator
  • ✅ [ON/OFF] Checks for changes in .meta files and syncs them if there are any
  • ✅ [ON/OFF] Provides documentation navigation for Unity messages. (Shortcut: Shift+1)
  • ✅ [ON/OFF] Provides theme 'Unity SW Pack Dark'

All features can be turned on or off in the settings!

Installation

  • Install the extension from the Visual Studio Code Marketplace.
  • This extension handles the "omnisharp.useModernNet": false setting of the C# extension for Unity development.

Prerequisites

  • Install the .NET SDK, which includes the Runtime and the dotnet command.

  • [Windows only] Logout or restart Windows to allow changes to %PATH% to take effect.

  • [macOS only] To avoid seeing "Some projects have trouble loading. Please review the output for more details", make sure to install the latest stable Mono release.

    Install Build Tools for Visual Studio (Windows only)

    The C# extension no longer ships with Microsoft Build Tools so they must be installed manually.

    • Download the Build Tools for Visual Studio 2022.
    • Install the .NET desktop build tools workload. No other components are required.

Features

Provides code snippets for Unity.

CodeSnippets

Shows Scene and Prefab referenced by Script.

UsageScenePrefab

Indicates Unity event bindings.

UnityEventBinding

Indicates Unity event function.

UnityEventMessage

Displays explanations of Unity messages on Hover.

Hover

Provide function signature change (Type toggle) between void-IEnumerator.

TypeToggle

Checks for changes in .meta files and syncs them if there are any.

metaFile

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft