- Home /
How to access a variable in ScriptableObject from another script?
Hi, I have asked the question once but was sadly left unanswered ):
So I'll ask again, as much as this is against the rules. How do I access a variable in a ScriptableObject? I have generated the asset file in my project view already, but I have yet to be able to access the variable from another script/class.
It would be immensely helpful if anyone could provide a way for my to access the object.
Do I use resource.load? It isnt working for me, for some reason it says it's null when I use this line.
ballStorageAsset = Resources.Load("BallStorage");
I already answered your other question...
http://answers.unity3d.com/questions/706133/how-to-reference-variable-in-scriptableobjectasset.html
Your answer

Follow this Question
Related Questions
Array in ScriptableObject made with a SO Creator script 0 Answers
cloning of ScriptableObject 2 Answers
Problem with ScriptableObject and Custom Editor 2 Answers
UnityScript ScriptableObject error 1 Answer
Importing and using custom assets 0 Answers