Page 1 of 1

Prefab error in Invector sample inventory

Posted: Mon Jul 17, 2023 4:47 am
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!

Re: Prefab error in Invector sample inventory

Posted: Mon Jul 17, 2023 1:59 pm
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.