Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

Mathematics not found

Discussion in 'Entity Component System' started by Elvenn, Sep 7, 2018.

Thread Status:
Not open for further replies.
  1. Elvenn

    Elvenn

    Joined:
    Jan 11, 2018
    Posts:
    9
    Hi,

    I'm running Unity 2018.2.7f1 and I have the Mathematics package installed (as well as Burst, Collections, Entities and Jobs) but in VS I can't find Unity.Mathematics...

    A picture of the problem in an empty project :


    Anyone has an idea ?
     
  2. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,558
    Why using statics Unity.mathematics? Remove it. Should solve the issue.
     
  3. Elvenn

    Elvenn

    Joined:
    Jan 11, 2018
    Posts:
    9
    Because it's what is recommanded on Mathematics github.
    But it doesn't solve the problem :'(
     
  4. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,558
    Oh is it? Didn't notice that. I need double check.

    upload_2018-9-7_16-58-27.png

    While you have Entities, try uninstall math package and see what happens.
    Entities come with own mathematics. Unless you looking for specific functions?
     
    Elvenn likes this.
  5. Elvenn

    Elvenn

    Joined:
    Jan 11, 2018
    Posts:
    9
    Thanks a lot, it works !
     
  6. Elvenn

    Elvenn

    Joined:
    Jan 11, 2018
    Posts:
    9
    Well it compiles but in VS the error is still displayed...
    And I get this message in the unity console when I reopen the project
    Rebuilding Library because the asset database could not be found!
     
  7. MartijnGG

    MartijnGG

    Joined:
    May 3, 2018
    Posts:
    74
    Did you add Unity.Mathematics as a dependency in your Fish assembly definition file?
     
    DanQuell likes this.
  8. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,558
    Try reimport all.
    I normally reimport all, after changing anything with packages. I found Unity otherwise chokes. :)
     
    manutoo, JoRouss and Elvenn like this.
Thread Status:
Not open for further replies.