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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Error messages from a script i can't change

Discussion in 'Editor & General Support' started by Clappedby_txger_, Feb 10, 2023.

  1. Clappedby_txger_

    Clappedby_txger_

    Joined:
    Oct 26, 2022
    Posts:
    3
    upload_2023-2-10_20-25-57.png

    Hey , I imported a package and removed it later on. After that i went to bed and in the morning i got this error messages . I figured out that the error messages come from a Unity built in Script called TriangulationUtility, which i cant change or delete. The error messages are triggered from sequences like this: upload_2023-2-10_20-31-14.png

    Also i find out that the Tessellate function is initialized with the 'out' . What can i do to make this work? Has Unity changed the one script but forget to change the other?
     
  2. chemicalcrux

    chemicalcrux

    Joined:
    Mar 16, 2017
    Posts:
    717
    I would rebuild the Library folder -- right click in the Project window and hit "Reimport All". I bet something's gotten out-of-whack after adding and removing packages.
     
  3. Clappedby_txger_

    Clappedby_txger_

    Joined:
    Oct 26, 2022
    Posts:
    3
    I get the same error
     
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,951
    This is possible. Did you perhaps change out more dependencies than you think?

    This might also help you:

    Extra unwanted packages in new projects (collab, testing, rider and other junk):

    https://forum.unity.com/threads/temp-unityengine-testrunner-dll-error.1133938/#post-7287748

    About the fastest way I have found to make a project and avoid all this noise is to create the project, then as soon as you see the files appear, FORCE-STOP (hard-kill) Unity (with the Activity Manager or Task Manager), then go hand-edit the Packages/manifest.json file as outlined in the above post, then reopen Unity.

    Sometimes the package system gets borked from all this unnecessary churn and requires the package cache to be cleared:

    https://stackoverflow.com/questions/53145919/unity3d-package-cache-errors/69779122

    I'm sorry you've had this issue. Please consider using proper industrial-grade enterprise-qualified source control in order to guard and protect your hard-earned work.

    Personally I use git (completely outside of Unity) because it is free and there are tons of tutorials out there to help you set it up as well as free places to host your repo (BitBucket, Github, Gitlab, etc.).

    You can also push git repositories to other drives: thumb drives, USB drives, network drives, etc., effectively putting a complete copy of the repository there.

    As far as configuring Unity to play nice with git, keep this in mind:

    https://forum.unity.com/threads/prefab-links-keep-getting-dumped-on-git-pull.646600/#post-7142306

    I usually make a separate repository for each game, but I have some repositories with a bunch of smaller test games.

    Here is how I use git in one of my games, Jetpack Kurt:

    https://forum.unity.com/threads/2-steps-backwards.965048/#post-6282497

    Using fine-grained source control as you work to refine your engineering:

    https://forum.unity.com/threads/whe...grammer-example-in-text.1048739/#post-6783740

    Share/Sharing source code between projects:

    https://forum.unity.com/threads/your-techniques-to-share-code-between-projects.575959/#post-3835837

    Setting up an appropriate .gitignore file for Unity3D:

    https://forum.unity.com/threads/removing-il2cpp_cache-from-project.1084607/#post-6997067

    Generally setting Unity up (includes above .gitignore concepts):

    https://thoughtbot.com/blog/how-to-git-with-unity

    It is only simple economics that you must expend as much effort into backing it up as you feel the work is worth in the first place. Digital storage is so unbelievably cheap today that you can buy gigabytes of flash drive storage for about the price of a cup of coffee. It's simply ridiculous not to back up.

    If you plan on joining the software industry, you will be required and expected to know how to use source control.

    "Use source control or you will be really sad sooner or later." - StarManta on the Unity3D forum boards
     
  5. Clappedby_txger_

    Clappedby_txger_

    Joined:
    Oct 26, 2022
    Posts:
    3


    Thank you for your detailed answer. I appreciate your tips a lot , because im new to Unity and its a comprehensive software. I will try your tips over the past week and then i will post if they work.