Unsupported type vector

I have searched and searched but nothing I found seems to fix the issue. (restarting Unity, reimporting script)

I have a class that I want to access via an array in another class but whenever I add items of the type I get this red error:

Unsupported type vector
0x00007ff7cf02f46c (Unity) StackWalker::GetCurrentCallstack
0x00007ff7cf036a69 (Unity) StackWalker::ShowCallstack
0x00007ff7cfdc8d4c (Unity) GetStacktrace
0x00007ff7d082b497 (Unity) DebugStringToFile
0x00007ff7cfbfb6c8 (Unity) ExtractPropertyModificationValueFromBytes
0x00007ff7cfbf0ad8 (Unity) UpdatePrefabModificationToCurrentState::operator()
0x00007ff7cfbe938e (Unity) ApplyPropertyRecurse
0x00007ff7cfbfb0e7 (Unity) ExtractCurrentValueOfAllModifications
0x00007ff7cfc1892c (Unity) GeneratePrefabPropertyDiff
0x00007ff7cfbe6cdc (Unity) RecordPrefabInstancePropertyModificationsAndValidate
0x00007ff7cf7a49cd (Unity) SceneTracker::FlushDirty
0x00007ff7cf960076 (Unity) Application::TickTimer
0x00007ff7cfdf1f6e (Unity) WindowsDropTargetImpl::smile:ragPerformed
0x00007ff7cfddcb0b (Unity) CDropTarget::smile:rop
0x00007ffa02e5bae8 (ole32) RevokeActiveObjectExt
0x00007ffa02e5b98c (ole32) RevokeActiveObjectExt
0x00007ffa02e19179 (ole32) OleGetPackageClipboardOwner
0x00007ffa02e18865 (ole32) OleGetPackageClipboardOwner
0x00007ffa02e1c938 (ole32) DoDragDrop
0x00007ff7cfdf4436 (Unity) DragAndDrop::StartDelayedDrag
0x00007ff7cfdf23d8 (Unity) DragAndDrop::ApplyQueuedStartDrag
0x00007ff7cfe00518 (Unity) GUIView::OnInputEvent
0x00007ff7cf894a50 (Unity) GUIView::ProcessInputEvent
0x00007ff7cfe013d2 (Unity) GUIView::ProcessEventMessages
0x00007ff7cfdfaed3 (Unity) GUIView::GUIViewWndProc
0x00007ffa02bfe858 (USER32) CallWindowProcW
0x00007ffa02bfe299 (USER32) DispatchMessageW
0x00007ff7cfdcf1a3 (Unity) MainMessageLoop
0x00007ff7cfdd33a1 (Unity) WinMain
0x00007ff7d1475f3e (Unity) __scrt_common_main_seh
0x00007ffa02447034 (KERNEL32) BaseThreadInitThunk
0x00007ffa04422651 (ntdll) RtlUserThreadStart

Just tested on other arrays in this class, they also generate this error when I try to add or remove items via inspector.

But tried the same on a different script and it works fine?

Fixed it:

Deleted the prefab that had this script attached, reimported the script and recreated the prefab from scratch, and it works.

2 Likes