Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

New scripts problem..

Discussion in '2018.1 Beta' started by PiterQ70, Jan 17, 2018.

  1. PiterQ70

    PiterQ70

    Joined:
    Mar 3, 2015
    Posts:
    82
    Hi there.
    I have enabled .Net 4.6 support and I go some weird things..
    When I create new script and add some functions, back to unity, and I have warning in inspector: fix compile errors.. I need restart Unity and problem gone. And this happens every new script, every edit script. I use VS 2017 some free version..
    Anybody have this problem? With enabled .Net 3.5 I don't have this problem.
    I can make video when this happened.
    Cheers
     
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,920
    yes, please make a video. I'm unsure about what is happening here.
     
  3. PiterQ70

    PiterQ70

    Joined:
    Mar 3, 2015
    Posts:
    82
    @JoshPeterson I don't show on the video but when I restart Unity, problem gone.

     
  4. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,920
    I can't view the video for some reason. YouTube says it is unavailable.
     
  5. PiterQ70

    PiterQ70

    Joined:
    Mar 3, 2015
    Posts:
    82
    Now should be good
     
  6. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,920
    Thanks, I can view it now. This certainly looks like a bug on the Unity side. Can you submit a bug report so that we can track this issue and provide you feedback when it is corrected?
     
  7. PiterQ70

    PiterQ70

    Joined:
    Mar 3, 2015
    Posts:
    82
    I had fix problem but I'm not sure what step exactly fix this problem:
    1. Run explorer as administrator
    2. VS 2017 - I enable nuget package manager.

    If you want @JoshPeterson I can more investigate problem.


    EDIT: Probably help step 2 bcz I check enable Explorer without administrator permission and no problem. I'll check again with disabled nuget package.
     
  8. PiterQ70

    PiterQ70

    Joined:
    Mar 3, 2015
    Posts:
    82
    Weird.. I try reproduce this problem and.. no problem now :X Maybe when I updated VS 2017 to newer version this step fix issue .. I don't know. Anyway if I get again this problem I will write.
    Thanks ^^
     
    LeonhardP likes this.
  9. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,920
    Thanks, please do let us know if you can reproduce this issue again.
     
  10. Carpe-Denius

    Carpe-Denius

    Joined:
    May 17, 2013
    Posts:
    842
    I had that for a short amount of time, too. It only happened if you use the inspector to create a new script. If you save it again it gets overwritten again.
    I didn't report it because it doesn't happen anymore, it was probably some synchronization issue between the vs solution and unity.