Inventory Master DragItem.cs Error Cant change transform parent of a object that resides in a prefab?
Hello everyone.
I am having some trouble running Inventory Master from the asset store. I am guessing it is because i am now running unity 5. I had this running on previous versions.
My issue is on line 44.
Setting the parent of a transform which resides in a prefab is disabled to prevent data corruption. UnityEngine.Transform:SetParent(Transform) and NullReferenceException: Object reference not set to an instance of an object DragItem.Start () (at Assets/InventoryMaster/Scripts/Item/DragItem.cs:44)
here is the pastebin link to the whole script. You will see my 2 attempts to get things to jive together I commented out. I got the same error. http://pastebin.com/MhwLP9CD
Comment