mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-04-11 23:19:00 +08:00
Adjust callback order to support EditorOnly fully
This commit is contained in:
parent
2ac191555e
commit
2623c14b8f
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user