Question by
Riku28 · Oct 24, 2020 at 04:45 AM ·
unity 5scripting beginnerscriptableobjectmethods
Any Resources Load Method? or How to asing ScritableObjects to instanciated GO?
Anyone has a method like:
public void LoadResourse(string location)
{
holder = Resources.Load(location);
}
that works for scriptable objects?
Im trying to inctanciate an object then give it and scriptableobject but the resource isnt known until the object spawns.
Example: If GOa, GOb and GOc spawn I need to load an scriptableobject for them to carry arround. Sometimes GOa needs to load ScriptableObject A, sometimes it needs to load B or even C.
Comment
Your answer
Follow this Question
Related Questions
how do i keep an item destroyed when i change the scene c# 0 Answers
please help me, i'm creating a first person game, but my script is incomplete and i can't crouch 0 Answers
Unity Damage game object with tag after changing tag of current one. 0 Answers
Script problem: Trying to make the code of this script run at a set interval (GUI handle object) 1 Answer