handzlikchris / Unity.MissingUnityEvents

Editor extension to generate events that are executed before property set, eg. Transform-position, Transform-rotation, Transform-parent which allows to write more event driven code or debug property changes that are not simple to track down. Easily customisable to allow adding events to different property setters / types.
MIT License
184 stars 16 forks source link

Unknown editor freeze in play mode. #15

Closed 2Hadolphin closed 2 years ago

2Hadolphin commented 2 years ago

After finish load scene for 5~10 seconds, UnityEditor will freeze and not respond.

Unity 2022.1.10f1

Editor.log

handzlikchris commented 2 years ago

@2Hadolphin looks like this is already integrated in your project. It's hard to say why would that happen as it's likely a mix caused by combination of things in your project that happens.

Probably best to try to and replicate on smalles possible project to narrow the issue down, with that if you share the project files where issue can be recreated I may be able to help.

But once you've narrowed it down you'll probably already know what's causing it.

2Hadolphin commented 2 years ago

Thanks for your reply, I found what's going wrong, If there is a script invoke job system in the scene, it will cause editor freeze without any error log. Would this happen when using plugin from AssetStore version?

`Unity.Jobs.IJobExtensions.Schedule()(this T jobData, JobHandle dependsOn = default(JobHandle))

public unsafe static JobHandle Schedule(this T jobData, JobHandle dependsOn = default(JobHandle))`

Really want to purchase your AssetStore product. This tool is definitely a brand new design for develop, I always spend hours to find out what makes the animation glitch, especially when I working with playable graph.

handzlikchris commented 2 years ago

Alright, nice one.

looks like it's tapping into native side of Unity.

With animation I'm not 100% sure that other tool would help you. It's working with c# (managed) side of Unity, if animation is adjusting properties like (postion / rotaion) on native side then it would not catch it either.

I think I still have some free vouchers for the tool - if you like to have a look then ping a message in this thread https://forum.unity.com/threads/released-transform-changes-debugger.1198315/