Hello!
I'm currently finishing the model and Baked as Optimized (I just skipped the regular Bake and just when directly on the Optimized), not sure if that's actually relevant, but after testing out the character in-game, I tried to get back to the AP Editor and started getting this error when I try to load it:
NullReferenceException: Object reference not set to an instance of an object
AnyPortrait.apAnimTimelineLayer.Link (AnyPortrait.apAnimClip animClip, AnyPortrait.apAnimTimeline timeline) (at Assets/AnyPortrait/Assets/Scripts/Animation/apAnimTimelineLayer.cs:222)
AnyPortrait.apAnimTimeline.Link (AnyPortrait.apAnimClip animClip) (at Assets/AnyPortrait/Assets/Scripts/Animation/apAnimTimeline.cs:145)
AnyPortrait.apAnimClip.LinkEditor (AnyPortrait.apPortrait portrait) (at Assets/AnyPortrait/Assets/Scripts/BasicObjects/apAnimClip.cs:242)
AnyPortrait.apPortrait.LinkAndRefreshInEditor (System.Boolean isResetLink, AnyPortrait.apUtil+LinkRefreshRequest linkRefreshRequest) (at Assets/AnyPortrait/Assets/Scripts/apPortrait.cs:8335)
AnyPortrait.apMeshGroup.ResetRenderUnits (AnyPortrait.apUtil+LinkRefreshRequest linkRefreshRequest) (at Assets/AnyPortrait/Assets/Scripts/BasicObjects/apMeshGroup.cs:1216)
AnyPortrait.apMeshGroup.UpdateAllRenderUnits (System.Single tDelta, System.Boolean isUpdateVertAlways, System.Boolean isDepthChanged, AnyPortrait.apUtil+LinkRefreshRequest linkRefreshRequest) (at Assets/AnyPortrait/Assets/Scripts/BasicObjects/apMeshGroup.cs:399)
AnyPortrait.apMeshGroup.RefreshForce (System.Boolean isDepthChanged, System.Single tDelta, AnyPortrait.apUtil+LinkRefreshRequest linkRefreshRequest) (at Assets/AnyPortrait/Assets/Scripts/BasicObjects/apMeshGroup.cs:367)
AnyPortrait.apPortrait.ReadyToEdit_Step6 () (at Assets/AnyPortrait/Assets/Scripts/apPortrait.cs:7108)
AnyPortrait.apEditor+<Crt_LoadingPortraitAsync>d__750.MoveNext () (at Assets/AnyPortrait/Editor/Scripts/apEditor.cs:14748)
AnyPortrait.apEditor.ExecuteCoroutine_LoadingPortraitAsync () (at Assets/AnyPortrait/Editor/Scripts/apEditor.cs:14685)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at <4e64905d831f4883a53259ef37fb023b>:0)
I was able to load the backup but and after restarting the Unity, I managed to load the character but it deleted the main Mesh Group, so it's all gone haha I'm still able to use the backup file as I didn't lost much, just wanted to bring this to you guys attention.
I'm currently using Unity 2021.3.11f and AP version 1.41
Thanks for your time!
Hi!
We leave this comment because there are improvements related to this problem in the updated AnyPortrait v1.4.2.
We haven't been able to pinpoint the cause of this issue, but we've improved the editor's code to handle similar errors if they occur for any reason.
Details on the latest version can be found on this page:
Thanks!