mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-04-04 19:49:02 +08:00
Adjust callback order to support EditorOnly fully (#151)
This commit is contained in:
parent
56e08513a5
commit
8bbe774ea1
@ -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