I am sure its possible, but I haven't figured out how. How would I go about using string interpolation for scriptableObjects? Some basic code I have for it:
public class ScriptableCardBase : ScriptableObject
{
public string cardDes;
}
public class CardUI : MonoBehaviour
{
public List<ScriptableCardBase> card = new List<ScriptableCardBase>();
public Text desText;
public void DisplayCard(int i)
{
desText.text = card[i].cardDes;
}
}
For my cards, I just want to be able to display the damage of the card, or number of effects, etc. Here is a screenshot of what the SO Card looks like and where I try to input the string. Any help would be greatly appreciated!
I guess a long questions short is, can I use string interpolation with scriptable objects?