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

VRCExpressions未設定でMA Menu Item系にパラメーター名を選択から設定しようとするとエラーが発生する #797

Open
c-colloid opened this issue Mar 23, 2024 · 0 comments
Labels
bug Something isn't working papercut low-priority UI issues

Comments

@c-colloid
Copy link

AvatarDiscriptorにExpressionParametersを設定していない状態(デフォルト状態を含む)でMA Menu Item(MA Menu Group/MA Menu Installerも)でパラメーター名をドロップダウンメニューから選択しようとすると選択ウィンドウが開かず以下のエラーが出ます
image
image

NullReferenceException: Object reference not set to an instance of an object
nadena.dev.modular_avatar.core.editor.ParameterGUI+ParameterTree+<FindParameters>d__11.MoveNext () (at ./Packages/nadena.dev.modular-avatar/Editor/Inspector/Menu/ParameterField.cs:280)
nadena.dev.modular_avatar.core.editor.ParameterGUI+ParameterTree.BuildRoot () (at ./Packages/nadena.dev.modular-avatar/Editor/Inspector/Menu/ParameterField.cs:237)
UnityEditor.IMGUI.Controls.TreeView+TreeViewControlDataSource.FetchData () (at <347e3e2bef8c4deb82c9790c6e198135>:0)
UnityEditor.IMGUI.Controls.TreeViewDataSource.ReloadData () (at <347e3e2bef8c4deb82c9790c6e198135>:0)
UnityEditor.IMGUI.Controls.TreeView+TreeViewControlDataSource.ReloadData () (at <347e3e2bef8c4deb82c9790c6e198135>:0)
UnityEditor.IMGUI.Controls.TreeViewController.ReloadData () (at <347e3e2bef8c4deb82c9790c6e198135>:0)
UnityEditor.IMGUI.Controls.TreeView.Reload () (at <347e3e2bef8c4deb82c9790c6e198135>:0)
nadena.dev.modular_avatar.core.editor.ParameterGUI+ParameterWindow.OnGUI (UnityEngine.Rect rect) (at ./Packages/nadena.dev.modular-avatar/Editor/Inspector/Menu/ParameterField.cs:140)
UnityEditor.PopupWindow.OnGUI () (at <347e3e2bef8c4deb82c9790c6e198135>:0)
UnityEditor.HostView.OldOnGUI () (at <347e3e2bef8c4deb82c9790c6e198135>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <d30253adcd2a48faba9ee2264e211f5a>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
TreeView has not been properly intialized yet. Ensure to call Reload() before using the tree view.
UnityEditor.IMGUI.Controls.TreeView:OnGUI (UnityEngine.Rect)
nadena.dev.modular_avatar.core.editor.ParameterGUI/ParameterWindow:OnGUI (UnityEngine.Rect) (at ./Packages/nadena.dev.modular-avatar/Editor/Inspector/Menu/ParameterField.cs:144)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

現在はダミーのExpressionParametersをAvatarDiscriptorに設定し、MAの設定が終わった後AvatarDiscriptorの設定をデフォルトに戻すことを回避策としています

@bdunderscore bdunderscore added bug Something isn't working papercut low-priority UI issues labels May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working papercut low-priority UI issues
Projects
Status: No status
Development

No branches or pull requests

2 participants