Strange error

(Brian Bullard) #1

Hey Leslie or someone.

Im getting this on itembag.cs, anyone know why this might be happening? I cant seem to find this in the source files to try and figure out what the problem is.

MissingFieldException: Field ‘plyGame.ItemBag.forcedStacking’ not found.
UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor[] editors, Int32 editorIndex, Boolean rebuildOptimizedGUIBlock, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1245)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

(Brian Bullard) #2

I just added the boolean value and all is well in source. Maybe I deleted by accident.

(Leslie Young) #3

You should have this field in the ItemBag class > public bool forcedStacking;

(Brian Bullard) #4

Yea, I must of removed it like a dummy at some point. I added back in and re-compiled and all is well now.