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

Can't assign a prefab to PlayerObjectAssigner #6

Open
TyroneSama opened this issue Feb 13, 2022 · 0 comments
Open

Can't assign a prefab to PlayerObjectAssigner #6

TyroneSama opened this issue Feb 13, 2022 · 0 comments

Comments

@TyroneSama
Copy link

image

Unity 2019.4.31f1, UdonSharp v0.20.3—UI seems broken. Bringing up the Inspector for either PlayerObjectAssigner or PlayerObjectPool produces this error:

NullReferenceException: Object reference not set to an instance of an object
UdonSharpEditor.UdonSharpComponentExtensions.ConvertToUdonSharpComponentIntnl (VRC.Udon.UdonBehaviour behaviour, System.Type type, UdonSharpEditor.ProxySerializationPolicy proxySerializationPolicy) (at Assets/UdonSharp/Editor/Editors/UdonSharpComponentExtensions.cs:68)
UdonSharpEditor.UdonSharpComponentExtensions.ConvertToUdonSharpComponents[T] (VRC.Udon.UdonBehaviour[] behaviours, UdonSharpEditor.ProxySerializationPolicy proxySerializationPolicy) (at Assets/UdonSharp/Editor/Editors/UdonSharpComponentExtensions.cs:124)
UdonSharpEditor.UdonSharpComponentExtensions.GetUdonSharpComponentsInChildren[T] (UnityEngine.GameObject gameObject, System.Boolean includeInactive) (at Assets/UdonSharp/Editor/Editors/UdonSharpComponentExtensions.cs:339)
Cyan.PlayerObjectPool.CyanPoolSetupHelper.<GetPoolUdon>g__GetPoolUdon|5_0 (UnityEngine.GameObject obj) (at Assets/Cyan/PlayerObjectPool/Scripts/CyanPoolSetupHelper.cs:81)
Cyan.PlayerObjectPool.CyanPoolSetupHelper.GetPoolUdon () (at Assets/Cyan/PlayerObjectPool/Scripts/CyanPoolSetupHelper.cs:94)
Cyan.PlayerObjectPool.CyanPoolSetupHelper.GetPoolSize () (at Assets/Cyan/PlayerObjectPool/Scripts/CyanPoolSetupHelper.cs:117)
Cyan.PlayerObjectPool.CyanPlayerObjectAssignerEditor.RenderHelperSettings () (at Assets/Cyan/PlayerObjectPool/Scripts/Editor/CyanPlayerObjectAssignerEditor.cs:101)
Cyan.PlayerObjectPool.CyanPlayerObjectAssignerEditor.OnInspectorGUI () (at Assets/Cyan/PlayerObjectPool/Scripts/Editor/CyanPlayerObjectAssignerEditor.cs:49)
UdonSharpEditor.UdonBehaviourOverrideEditor.OnInspectorGUI () (at Assets/UdonSharp/Editor/Editors/UdonSharpBehaviourEditor.cs:507)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass58_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <a259d3c004024353a2c217da97495055>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

I assume this is dumb user error somehow, but not really sure how to proceed—I've tried reimporting UdonSharp just to be sure, but no luck.

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

1 participant