Adjust callback order to support EditorOnly fully (#151)

This commit is contained in:
bd_ 2022-12-09 12:41:07 -08:00 committed by GitHub
parent 56e08513a5
commit 8bbe774ea1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,6 +37,9 @@ namespace nadena.dev.modular_avatar.core.editor
[InitializeOnLoad]
public class AvatarProcessor : IVRCSDKPreprocessAvatarCallback, IVRCSDKPostprocessAvatarCallback
{
// Place after EditorOnly processing (which runs at -1024) but hopefully before most other user callbacks
public int callbackOrder => -25;
public delegate void AvatarProcessorCallback(GameObject obj);
/// <summary>
@ -93,8 +96,6 @@ namespace nadena.dev.modular_avatar.core.editor
}
}
public int callbackOrder => -9000;
public void OnPostprocessAvatar()
{
Util.DeleteTemporaryAssets();