Search Unity

Visual Studio Code: Can't Access any Unity / Non Locally Scoped Variables??

Discussion in 'Code Editors & IDEs' started by jackyforever, Nov 21, 2020.

  1. jackyforever

    jackyforever

    Joined:
    Jul 11, 2017
    Posts:
    1
    Hi all,

    I've downloaded a sample project to study good code architecture. I've tried to set some BP to check values, but any values using Unity source code (like Time.deltaTime) can't be found by the debugger. Trying to evaulate these values returns:

    "Evaluate request failed (Unknown identifier: Time)."

    Is there any workaround to this? I'm enjoying using VSCode, but it seems hard to be able to use without being able to properly debug.

    Thanks!
     
  2. Siccity

    Siccity

    Joined:
    Dec 7, 2013
    Posts:
    255
    Check your OmniSharp log for errors and warnings