cemuka / vscode-unity-code-snippets

All snippets for Unity3D development

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unity Code Snippets

Create Unity classes and methods easily. Forked from Kleber Silva.

Changed bracket positions from this:

public class Foo {

}

to this:

public class Foo 
{

}

All the snippets

Start typing the names to create the corresponding snippets.

  • Game classes:

    • MonoBehaviour
    • StateMachineBehaviour
    • NetworkBehaviour
    • ScriptableObject
  • Editor Classes:

    • Editor
    • Editor with Reorderable List (NEW)
    • EditorWindow
    • PropertyDrawer
    • ScriptableWizard
  • MonoBehaviour Methods:

    • Awake()
    • FixedUpdate()
    • LateUpdate()
    • OnAnimatorIK()
    • OnAnimatorMove()
    • OnApplicationFocus()
    • OnApplicationPause()
    • OnApplicationQuit()
    • OnAudioFilterRead()
    • OnBecameInvisible()
    • OnBecameVisible()
    • OnCollisionEnter()
    • OnCollisionEnter2D()
    • OnCollisionExit()
    • OnCollisionExit2D()
    • OnCollisionStay()
    • OnCollisionStay2D()
    • OnConnectedToServer()
    • OnControllerColliderHit()
    • OnDestroy()
    • OnDisable()
    • OnDisconnectedFromServer()
    • OnDrawGizmos()
    • OnDrawGizmosSelected()
    • OnEnable()
    • OnFailedToConnect()
    • OnFailedToConnectToMasterServer()
    • OnGUI()
    • OnJointBreak()
    • OnJointBreak2D()
    • OnMasterServerEvent()
    • OnMouseDown()
    • OnMouseDrag()
    • OnMouseEnter()
    • OnMouseExit()
    • OnMouseOver()
    • OnMouseUp()
    • OnMouseUpAsButton()
    • OnNetworkInstantiate()
    • OnParticleCollision()
    • OnParticleTrigger()
    • OnPlayerConnected()
    • OnPlayerDisconnected()
    • OnPostRender()
    • OnPreCull()
    • OnPreRender()
    • OnRenderImage()
    • OnRenderObject()
    • OnSerializeNetworkView()
    • OnServerInitialized()
    • OnTransformChildrenChanged()
    • OnTransformParentChanged()
    • OnTriggerEnter()
    • OnTriggerEnter2D()
    • OnTriggerExit()
    • OnTriggerExit2D()
    • OnTriggerStay()
    • OnTriggerStay2D()
    • OnValidate()
    • OnWillRenderObject()
    • Reset()
    • Start()
    • Update()
  • Some useful code snippets:

    • Debug.Log() (type log)
    • Debug.LogError() (type logerror)
    • Debug.LogWarning() (type logwarning)
    • Debug.LogException() (type logexception)

About

All snippets for Unity3D development

License:MIT License