Prefab error in Invector sample inventory

Announcements, support questions, and discussion for Quest Machine.
Post Reply
mroshaw
Posts: 96
Joined: Wed Jan 19, 2022 4:10 am

Prefab error in Invector sample inventory

Post by mroshaw »

Hi!

I've just created a new project with Quest Machine (1.2.38.2) and Invector TPS (2.6.2c). I noticed a console error when importing the Quest Machine Invector 3rd party support package:

Code: Select all

Error while saving Prefab: 'Assets/Pixel Crushers/Quest Machine/Third Party Support/Invector Support/Scripts/Quest Machine Examples/Invector UI Journal Example/Inventory_ShooterMelee_Journal.prefab'. You are trying to save a Prefab with a missing script. This is not allowed.
Please change the script or remove it from the GameObject 'Options'.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
There appear to be missing scripts on these game objects within the "Inventory_ShooterMelee_Journal.prefab" prefab:
  • MainWindow
  • EquipmentInventory
  • EquipmentPickerWindow
  • ItemWindow
  • Options
I've imported the Invector support package from Common and from Quest Machine, and I've added the "USE_INVECTOR_INVENTORY" script define.

Is there something else that I've missed?

It's not causing me any problems, and highly likely due to user error! :D

Many thanks again!
User avatar
Tony Li
Posts: 22118
Joined: Thu Jul 18, 2013 1:27 pm

Re: Prefab error in Invector sample inventory

Post by Tony Li »

Hi,

No, it's not user error. The Invector guys changed their prefab and renamed some scripts, which broke the links in that prefab. It's just a supplemental example; if you have any questions about the main example, please let me know.
Post Reply