Hi RainyRizzle, Here's a serious bug... Tbh, this is really annoying... I hope it gets fixed quickly. Bugs:
When Open Editor is done, it does not start with a dock. It starts small and even if I double-click on the AnyPortrait title, it does not open full screen.
When I manually drag it up next to Scene and Game, it docked. However, since the screen is very small in this way, of course it needs to be made full screen to work comfortably. For this, I double click or right click and select Maximize and it becomes full screen. An error appears in the Debug Error Log, but I can continue working.
To test the work, I right click Unmaximize or double click on the name AnyPortrait. And good luck! AnyPortrait editor is destroyed but according to anyportrait scene gameobject "Editor Is Open"! I have to make Window > AnyPortrait > Reset Editor to make it work again. But repeat all the steps again and again...
To understand better, please watch the following video:
This error really bothers me, it slows down my work. Doing the same steps every time causes me to waste time and get tired of working. I managed like this for a few days but I couldn't stand it anymore so I wanted to contact you.
I hope you solve it in the next update.
Best regards, DryreL
Hi!
This issue has been bothering us for a long time.
There is an answer we wrote about this issue in the forum before.
At the time, we thought it was due to resource initialization, because the editor would crash with an unknown error when "Unmaximize" was executed after "Maximize" of the editor window.
So we investigated this issue by focusing on the phenomenon of resource initialization.
However, since Unity does not tell developers when "Unmaximize" occurs, we decided that this issue was impossible to fix.
We looked into this issue with a different approach this time.
We checked the state of the editor before and after Unmaximize was performed.
And we found that at the moment Unmaximize is executed, a "temporary dummy editor window" is created and then disappeared.
Since AnyPortrait editor is developed to have only one, having more than one editor window at the same time causes resource-related issues.
So we defined this phenomenon as "Unmaximize" and fixed the errors that occurred at that time one by one.
We have attached the completed script below after basic testing on Unity 2022 and Unity 2023.
This is based on AnyPortrait v1.5.1.
However, it is a bit difficult to conclude that this issue has been completely resolved.
As mentioned before, we did not detect Unmaximize correctly, but rather fixed the "strange phenomenon of another editor being created temporarily".
The issue seems to be somewhat resolved in current Unity versions, but it may re-occur in some versions that we have not tested or in future versions.
If your problem persists, please leave a comment!
Thank you.
P.S.
The issue you asked about in another post, "Error logging related to RenderTexture when the editor window is too small" is also solved in this file.