Search Unity

Aquas Build using UnityEditor error

Discussion in 'Assets and Asset Store' started by krahvaal, Dec 30, 2018.

  1. krahvaal

    krahvaal

    Joined:
    Feb 24, 2018
    Posts:
    19
    I bought a seat for Aquas in September 2018 and have made several builds for testing and study demos with no problems.
    Having updated recently I've now found it won't build throwing the error "Assets/AQUAS/Scripts/AQUAS_CameraSwitcher.cs(4,7): error CS0246: The type or namespace name `UnityEditor' could not be found. Are you missing an assembly reference?"

    Googling tells me that "using UnityEditor;" must not go in the build - why is this happening now and not before the recent Aquas update?
    I found posts saying such scripts should be in Assets/Editor and so on.
    Is there something we are supposed to comment, move or whatever before build?
    I have found nothing in Aquas Documentation, definitely not Troubleshooting or Additional Information and there is no Build topic.
    I'm on 2017.4.17f1 for LTS - this is later than the minimal 5.2.1 requirement, right?

    Having submitted a 'Contact' at Dogmatic Games 2 days ago with no reply I'm losing valuable time. I've deleted everything associated under AppData to ensure a clean install of Unity, Visual Studio 2017 and Aquas.
    Build is still raising this error for new project, new terrain default Camera for Quick Setup for water only as well as including underwater effects.

    If somebody could please help me solve this issue I would really appreciate it.

    Regards,
    Greg
     
  2. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,609
  3. krahvaal

    krahvaal

    Joined:
    Feb 24, 2018
    Posts:
    19
    Thank you Peter, much appreciated.
    I expected as such but did not find this link on Aquas website or a search box for the Assets thread.