I am trying to build out some content for a strategy game I'm building in Unity3d. I am currently using Scriptable Objects to create assets, however I'm having an issue getting exactly what I would like when it comes to linking the assets.
Let me give a proper example with some code. Lets say I have a building that accepts resources. So I might have my building SCO to look like:
public class buildingSCO : ScriptableObject {
public string Name;
public string ID;
public string Res;
}
And my resource SCO would look like:
public class resourceSCO : ScriptableObject {
public string Name;
public string ID;
}
So when I create the asset for the building I would enter the ID of the resource by hand (or copy/paste). But my concern is that as I create more and more assets I'll start to make errors. What I'd like is to be able to open an object selector and just select the resource asset I want the id of.