Friday, June 10, 2022
HomeGame Developmentc# - Unity - Learn how to fully disable auto refresh in...

c# – Unity – Learn how to fully disable auto refresh in all places (in favor of manually compiling them)


Query:

  • Is it doable for me to create a customized script that can totally disable auto refresh in all places inside Unity (not simply on script adjustments; in my case, asset creation/deletion along with every thing else)?

    • Or is that this explicit downside a bug that ought to be fastened by the Unity workforce (in order that unchecking the “Auto Refresh” setting totally disables it in all areas that set off it)?

My downside:

Unchecking the Asset Pipeline -> Auto Refresh setting would not totally disable this "Reload Script Assemblies" behavoiur. (i.e. the “cease every thing and stop you from having the ability to do something, Unity is locking all the way down to recompile issues” behaviour.)

Particularly I discovered that despite the fact that this setting is disabled, it nonetheless occurs for each new or eliminated Asset (making a script through Belongings -> Proper click on -> Choose Create -> C# Script, or eradicating one by going to Belongings -> Proper click on an asset -> Choose Delete). I am not a fan of this Auto Refresh performance (wherever in Unity), it is very disruptive and annoying to maintain operating into it with very minor adjustments. I am glad I’m able to disable this and manually run the refresh once I’m prepared for any of my script adjustments, however I nonetheless run into this irritating downside.

Along with the Auto Refresh setting being un-checked, I’ve my Common -> Script Adjustments Whereas Taking part in set to Recompile And Proceed Taking part in; that is nice however is not the offender as I am not at present taking part in when this refreshing occurs.

It seems like the issue is that different areas in Unity code that ought to be respecting the Asset Pipeline -> Auto Refresh setting, however aren’t setup to respect it (both as a result of it is a bug, or hasn’t been applied).

There’s numerous articles about find out how to disable auto refresh, however I have never discovered any which might be particular to new or deleted property (I’ve shared among the hyperlinks I’ve discovered under). Most sources I can discover for disabling auto refresh are for updates I make to my present scripts, for once I’m taking part in, or for making a customized script so as to add my very own logic (not fairly certain how to do that but, nonetheless researching this path).


Just a few hyperlinks which might be associated to this subject

however aren’t related sufficient to assist me resolve this downside:


My system information:

  • Unity model: 2021.3.3f1 Private
  • OS: MacBook Professional macOS Catalina Model 10.15.7

Aspect Observe: I not too long ago requested this query on the solutions.unity.com web site (query right here), however I discovered that web site is shutting down quickly (on June twenty third, 2022). Utilizing Unity’s discussion board is a large number, so I am re-asking this right here since Stack Overflow/Stack Trade is a greater Q&A group.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments