Question by
AquaPlayzX · Jun 18, 2017 at 12:27 AM ·
c#variablevariablesfolder
How to get all the variables in a folder. C#
I am trying to make an object oriented inventory system. I will put this script in a folder with all my Items. I will make it so that all the variables will not be gotten out of this file. Thanks for your help.
Comment
im confused when you say the term "folder". a script that is expected to run in unity allways needs to be attached to some sort of gameobject to be active. if it is a script that is not expected to "go away". then you can attach it something like a camera or simply create an empty gameobject for such purpose. the phsical location of the asset in the assete "folders" is irrelevant.
Try use Scriptable Object. https://unity3d.com/learn/tutorials/modules/beginner/live-training-archive/scriptable-objects