I am trying to build a shop in a 2D game and every time I interact with it, I get this error
NullReferenceException: Object reference not set to an instance of an object
ORKFramework.Shop.ShopScreen.Register () (at <7269fa06b8c047ea90de15f41f29ebac>:0)
ORKFramework.Shop.ShopScreen..ctor (ORKFramework.Events.IEventStarter starter, System.Int32 shopID, System.String shopSceneID, System.Int32 factionID) (at <7269fa06b8c047ea90de15f41f29ebac>:0)
ORKFramework.InventoryAccessHandler.OpenShop (ORKFramework.Events.IEventStarter starter, System.Int32 shopID, System.String shopSceneID, System.Int32 factionID) (at <7269fa06b8c047ea90de15f41f29ebac>:0)
ORKFramework.Behaviours.ShopInteraction.StartEvent (UnityEngine.GameObject startingObject) (at <7269fa06b8c047ea90de15f41f29ebac>:0)
ORKFramework.Behaviours.BaseInteraction.KeyPress () (at <7269fa06b8c047ea90de15f41f29ebac>:0)
ORKFramework.Behaviours.BaseInteraction.Update () (at <7269fa06b8c047ea90de15f41f29ebac>:0)
I've been through all the tutorials can't seem to find what i am missing or forgetting
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Hm, strange - which GUI system are you using, legacy (like in the tutorial) or new UI?
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I tested the completed project to see if it was the version of unity I am using causing these errors, but it works without issue
You can drastically reduce the size by deleting the Library folder from the Unity project. E.g. upload it to dropbox or something like that and send me the link.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Looked into your project - the shop itself is actually working, but interacting with it is not due to your somewhat wonky setup.
You actually use a game object in the scene, controlled via Makinom machines to move around, so that's not the ORK player (which tries to spawn, but can't due to not having a spawn point in the scene). Also, you seem to mix 2D and 3D components.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!