mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-04-12 23:48:59 +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]
|
[InitializeOnLoad]
|
||||||
public class AvatarProcessor : IVRCSDKPreprocessAvatarCallback, IVRCSDKPostprocessAvatarCallback
|
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);
|
public delegate void AvatarProcessorCallback(GameObject obj);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -93,8 +96,6 @@ namespace nadena.dev.modular_avatar.core.editor
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public int callbackOrder => -9000;
|
|
||||||
|
|
||||||
public void OnPostprocessAvatar()
|
public void OnPostprocessAvatar()
|
||||||
{
|
{
|
||||||
Util.DeleteTemporaryAssets();
|
Util.DeleteTemporaryAssets();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user