#unity keeps crashing when my player GameObject goes a certain distance
1 messages · Page 1 of 1 (latest)
Start from looking at the logs after the crash.
!logs
Editor logs
Windows: %LOCALAPPDATA%\Unity\Editor\Editor.log
MacOS: ~/Library/Logs/Unity/Editor.log
Linux: ~/.config/unity3d/Editor.log
Unity Hub
Windows: %UserProfile%\AppData\Roaming\UnityHub\logs
Mac: ~/Library/Application support/UnityHub/logs
Linux: ~/.config/UnityHub/logs
am i looking at the right screen?
If there is no editor.log, probably not.
Copy paste the windows path from the bot message(-editor.log) into explorer path bar and it should open the right dir.
i tried that
What's the full path?
What's in the Unity parent dir?
This is not a correct path. The link in the bot message should lead to the Local folder in appdata... Did you really copy paste it as is?
ah i see now
11
UnityEngine.StackTraceUtility:ExtractStackTrace ()
UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
UnityEngine.Logger:Log (UnityEngine.LogType,object)
UnityEngine.Debug:Log (object)
PEnemySpawn/<Enemyspawn>d__4:MoveNext () (at Assets/_GAME/_Player/_Player_Scripts/PEnemySpawn.cs:36)
UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr)
(Filename: Assets/_GAME/_Player/_Player_Scripts/PEnemySpawn.cs Line: 36)
12
UnityEngine.StackTraceUtility:ExtractStackTrace ()
UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
UnityEngine.Logger:Log (UnityEngine.LogType,object)
UnityEngine.Debug:Log (object)
PEnemySpawn/<Enemyspawn>d__4:MoveNext () (at Assets/_GAME/_Player/_Player_Scripts/PEnemySpawn.cs:36)
UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr)
(Filename: Assets/_GAME/_Player/_Player_Scripts/PEnemySpawn.cs Line: 36)
im guessing its the PEnemySpawn script doing it then?
!code
📃 Large Code Blocks
Use links to services like:
https://paste.mod.gg/, https://hastebin.skyra.pw/, https://paste.ofcode.org/, https://paste.myst.rs/
📃 Inline Code
Surround code with three backquotes. Not quotation marks.
To format as C#, add cs to the first line:
```cs
// Your code here
```
Add a comment with a line number if there is an error message.
Possibly. Scripts don't usually crash the editor.
Should probably look for a crash report at the very bottom(assuming you didn't reopen the editor after crash).
the part i sent was the very bottom (lemme send the logs on a link)
If there is no crash report, then it was not a crash. 🤷♂️
Maybe you're confusing with a freeze?