Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

アバターのルートが Editor Onlyな場合にプラグインのほとんどの処理でMissing Reference Exceptionが発生する #421

Open
anatawa12 opened this issue Sep 28, 2024 · 3 comments

Comments

@anatawa12
Copy link
Contributor

アバターのルートが Editor Only な物がある際に Play モードに入るとRemove EditorOnly Objectsパスでアバター本体が削除される影響で、Missing Reference Exceptionが発生します。

アバターのルートが Editor Only の場合はプラグインの処理しないなどを行なって欲しいです。

実際のエラー https://gist.github.com/eai04191/57bcd407c20e702099b3aafc22d43a68

@Sayamame-beans
Copy link
Contributor

triage:

foreach (var avatar in RuntimeUtil.FindAvatarsInScene(gameObject.scene))
{
// TODO: Check whether each avatar needs processing (activation components)
avatar.gameObject.GetOrAddComponent<AvatarActivator>().hideFlags = HideFlags.HideInInspector;
}

この辺りでEditorOnlyのチェックを行う必要がある?

@bdunderscore
Copy link
Owner

チェックを入れてエラーを起こすのがベストですが、1.5.0には間に合わないので1.5.1に回します。

@bdunderscore
Copy link
Owner

もしくはルートのEditorOnlyを外すとか。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants