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.

Question Getting errors setting up UnityTinySamples

Discussion in 'Project Tiny' started by zecuria, Oct 21, 2020.

  1. zecuria

    zecuria

    Joined:
    Oct 10, 2016
    Posts:
    2
    It's honestly probably just something stupid I am doing. But I was trying to follow the steps laid out in Google Docs and reached the point of cloning and setting up the Unity Tiny Samples.

    However whenever I try to open one of the code files under "Authoring" folder I get errors like the following:
    The type or namespace name 'Player' could not be found (are you missing a using directive or an assembly reference?) [TinySpaceship.Authoring]


    I have tried both VS Code as well as Visual Studio 2019 running on Windows 10. My editor is set to "PC, Mac & Linux Standalone"
     
  2. Ted_Wikman

    Ted_Wikman

    Unity Technologies

    Joined:
    Oct 7, 2019
    Posts:
    848
    Hello @zecuria,
    Does the errors show up in the editor or in your IDE (VS Code, Visual Studios)? And do you see any other errors?
    Going by the error you highlighted here, the authoring assembly (
    TinySpaceship.Authoring
    ) cannot find the runtime assembly (
    TinySpaceship
    ), where the Player struct is located. This could be caused by an earlier error preventing the assemblies to load properly.
     
  3. zecuria

    zecuria

    Joined:
    Oct 10, 2016
    Posts:
    2
    Hey @Ted_Wikman

    I think I figured it out. I had unity version 2020.1.9f1 installed as opposed to 2020.1.0f1. During setup it asked me if I wanted to auto convert it which I clicked yes to.

    When I reset all the files and re-cloned the repo using the correct version of unity it worked.

    Thanks for the help
     
    Ted_Wikman likes this.
  4. CocosGames

    CocosGames

    Joined:
    Aug 31, 2014
    Posts:
    37