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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Game crashes at random

Discussion in 'Scripting' started by Sushin, Mar 28, 2016.

  1. Sushin

    Sushin

    Joined:
    May 2, 2015
    Posts:
    25
    The game I've been working on crashes when played for ~20 minutes (out of editor) for no apparent reason. I'm using ProBuilder (a LOT), DOTween, and creating and deleting a lot of things at runtime and running a lot of things in update. Objects that fall out of the world are never destroyed (yet?) until a new level loads, but that doesn't seem to be a direct cause of the crashes.
    I imagine any one of these things, or all of them are contributing to eventual crashes, but I really don't know where to start in looking for where to solve this issue.

    Any hints on HOW I can start looking for the cause of something like this?
     
  2. KelsoMRK

    KelsoMRK

    Joined:
    Jul 18, 2010
    Posts:
    5,539
    Sushin likes this.
  3. Sushin

    Sushin

    Joined:
    May 2, 2015
    Posts:
    25
    Thank you! It seems like running DOTween functions in update is a bad idea but I'll have to test if that's the cause of the crashes.