(Version1.54c Unity 5.4.2f2)
I assigned my prefab to linkedPrefab within AC's Inventory Manager inspector.
I tryed to refer it through my custom script below.
Gameobject LinkedPrefab = AC.KickStarter.runtimeInventory.selectedItem.linkedPrefab;
But this code return null.
I estimated this problem is coming from constructor of "InvItem.cs".
So I added the following code to the constructor,It worked fine and I was successful in accessing linkedPrefab through my code.
linkedPrefab = assetItem.linkedPrefab;
I'd like to confirm that my method is correct.
Thank you.
Comments
Yes, this is correct. That's an omission, and I'll add it officially in the next release.